diff --git a/src/renderers/dom/client/__tests__/ReactDOM-test.js b/src/renderers/dom/client/__tests__/ReactDOM-test.js index cf88616e8c..c5b3545720 100644 --- a/src/renderers/dom/client/__tests__/ReactDOM-test.js +++ b/src/renderers/dom/client/__tests__/ReactDOM-test.js @@ -37,7 +37,7 @@ describe('ReactDOM', function() { return
; }, componentDidMount: function() { - form = React.findDOMNode(this); + form = ReactDOM.findDOMNode(this); } }); var instance = ReactTestUtils.renderIntoDocument(); diff --git a/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js b/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js index 5d46c433f1..1e6ec8f020 100644 --- a/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js +++ b/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js @@ -503,8 +503,8 @@ describe('ReactCompositeComponent', function() { var Inner = React.createClass({ componentWillUnmount: function() { // It's important that ReactMount.purgeID is called after any component - // lifecycle methods, because a componentWillMount implementation is - // likely to call React.findDOMNode(this), which will repopulate the + // lifecycle methods, because a componentWillUnmount implementation is + // likely to call ReactDOM.findDOMNode(this), which will repopulate the // node cache after it's been cleared, causing a memory leak. expect(ReactMount.purgeID.calls.length).toBe(0); innerUnmounted = true; diff --git a/src/test/createHierarchyRenderer.js b/src/test/createHierarchyRenderer.js index 106ff7daef..04dcafda16 100644 --- a/src/test/createHierarchyRenderer.js +++ b/src/test/createHierarchyRenderer.js @@ -33,7 +33,7 @@ var React = require('React'); * * var instances = renderHierarchy( * function(ComponentA[, ComponentB, ComponentC]) { - * React.render(, ...); + * ReactDOM.render(, ...); * }) * ); * instances[0][0]; // First return value of first render method.