Skip to content

Commit 1603763

Browse files
committed
Fix warnings in tests
1 parent 75708bf commit 1603763

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

test/FadeMixinSpec.jsx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff 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(/\bin\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+
});

0 commit comments

Comments
 (0)