Skip to content

Commit 84f1372

Browse files
committed
Fix React.findDOMNode warning
1 parent 3f90174 commit 84f1372

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)