Skip to content

Commit 69de34f

Browse files
committed
Merge pull request #153 from epeli/warnfix2
Fix React.findDOMNode warning
2 parents 3f90174 + 84f1372 commit 69de34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/components/connect.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ describe('React', () => {
12761276

12771277
// setState calls DOM handlers are batched
12781278
const container = TestUtils.findRenderedComponentWithType(tree, Container);
1279-
const node = React.findDOMNode(container.getWrappedInstance().refs.button);
1279+
const node = ReactDOM.findDOMNode(container.getWrappedInstance().refs.button);
12801280
TestUtils.Simulate.click(node);
12811281
expect(childMapStateInvokes).toBe(4);
12821282

0 commit comments

Comments
 (0)