Skip to content

Commit 3310f2b

Browse files
committed
Cleanup after #8353
1 parent 0c885af commit 3310f2b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/renderers/dom/stack/client/__tests__/ReactDOM-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
var React = require('React');
1515
var ReactDOM = require('ReactDOM');
1616
var ReactTestUtils = require('ReactTestUtils');
17-
var div = React.createFactory('div');
1817

1918
describe('ReactDOM', () => {
2019
// TODO: uncomment this test once we can run in phantom, which
@@ -54,15 +53,15 @@ describe('ReactDOM', () => {
5453

5554
it('should allow children to be passed as an argument', () => {
5655
var argDiv = ReactTestUtils.renderIntoDocument(
57-
div(null, 'child')
56+
React.DOM.div(null, 'child')
5857
);
5958
var argNode = ReactDOM.findDOMNode(argDiv);
6059
expect(argNode.innerHTML).toBe('child');
6160
});
6261

6362
it('should overwrite props.children with children argument', () => {
6463
var conflictDiv = ReactTestUtils.renderIntoDocument(
65-
div({children: 'fakechild'}, 'child')
64+
React.DOM.div({children: 'fakechild'}, 'child')
6665
);
6766
var conflictNode = ReactDOM.findDOMNode(conflictDiv);
6867
expect(conflictNode.innerHTML).toBe('child');

src/renderers/noop/ReactNoop.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ var ReactNoop = {
270270

271271
syncUpdates: NoopRenderer.syncUpdates,
272272

273-
isCommitting: () => isCommitting,
274-
275273
// Logs the current state of the tree.
276274
dumpTree(rootID : string = DEFAULT_ROOT_ID) {
277275
const root = roots.get(rootID);

0 commit comments

Comments
 (0)