Fix strict mode violoation in test

This commit is contained in:
Paul O’Shannessy
2015-01-20 18:26:51 -08:00
parent 06de3f31f0
commit f9c393f4fb
@@ -239,10 +239,10 @@ describe('ReactComponentLifeCycle', function() {
}
});
expect(function() {
instance = ReactTestUtils.renderIntoDocument(<StatefulComponent />);
ReactTestUtils.renderIntoDocument(<StatefulComponent />);
}).toThrow(
'Invariant Violation: setState(...): Can only update a mounted or ' +
'mounting component. This usually means you called setState() on an ' +
'mounting component. This usually means you called setState() on an ' +
'unmounted component.'
);
});