Skip to content

Commit

Permalink
Merge pull request #153 from epeli/warnfix2
Browse files Browse the repository at this point in the history
Fix React.findDOMNode warning
  • Loading branch information
gaearon committed Oct 12, 2015
2 parents 3f90174 + 84f1372 commit 69de34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/components/connect.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ describe('React', () => {

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

Expand Down

0 comments on commit 69de34f

Please sign in to comment.