File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,21 +13,19 @@ describe('FadeMixin', function () {
1313 mixins : [ FadeMixin ] ,
1414
1515 render : function ( ) {
16- return this . transferPropsTo (
17- React . DOM . div ( { className : 'fade' } ,
18- React . DOM . span ( { className : 'fade' } )
19- )
16+ return (
17+ < div { ... this . props } className = 'fade' >
18+ < span className = 'fade' />
19+ </ div >
2020 ) ;
2121 }
2222 } ) ;
2323 } ) ;
2424
2525 it ( 'Should add the in class to all elements' , function ( done ) {
26- var instance = ReactTestUtils . renderIntoDocument (
27- Component ( )
28- ) ;
26+ var instance = ReactTestUtils . renderIntoDocument ( < Component /> ) ;
2927
30- var child = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'span' )
28+ var child = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'span' ) ;
3129
3230 setTimeout ( function ( ) {
3331 assert . ok ( instance . getDOMNode ( ) . className . match ( / \b i n \b / ) ) ;
@@ -39,9 +37,7 @@ describe('FadeMixin', function () {
3937 } ) ;
4038
4139 it ( 'Should remove the in class for all elements' , function ( done ) {
42- var instance = ReactTestUtils . renderIntoDocument (
43- Component ( )
44- ) ;
40+ var instance = ReactTestUtils . renderIntoDocument ( < Component /> ) ;
4541
4642 setTimeout ( function ( ) {
4743 instance . componentWillUnmount ( )
@@ -60,4 +56,4 @@ describe('FadeMixin', function () {
6056 } , 25 )
6157 } , 25 )
6258 } ) ;
63- } ) ;
59+ } ) ;
You can’t perform that action at this time.
0 commit comments