File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
dom/stack/client/__tests__ Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1414var React = require ( 'React' ) ;
1515var ReactDOM = require ( 'ReactDOM' ) ;
1616var ReactTestUtils = require ( 'ReactTestUtils' ) ;
17- var div = React . createFactory ( 'div' ) ;
1817
1918describe ( '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' ) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments