File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -13,21 +13,19 @@ describe('FadeMixin', function () {
13
13
mixins : [ FadeMixin ] ,
14
14
15
15
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 >
20
20
) ;
21
21
}
22
22
} ) ;
23
23
} ) ;
24
24
25
25
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 /> ) ;
29
27
30
- var child = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'span' )
28
+ var child = ReactTestUtils . findRenderedDOMComponentWithTag ( instance , 'span' ) ;
31
29
32
30
setTimeout ( function ( ) {
33
31
assert . ok ( instance . getDOMNode ( ) . className . match ( / \b i n \b / ) ) ;
@@ -39,9 +37,7 @@ describe('FadeMixin', function () {
39
37
} ) ;
40
38
41
39
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 /> ) ;
45
41
46
42
setTimeout ( function ( ) {
47
43
instance . componentWillUnmount ( )
@@ -60,4 +56,4 @@ describe('FadeMixin', function () {
60
56
} , 25 )
61
57
} , 25 )
62
58
} ) ;
63
- } ) ;
59
+ } ) ;
You can’t perform that action at this time.
0 commit comments