mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Fix strict mode violoation in test
This commit is contained in:
1 parent
06de3f31f0
commit
f9c393f4fb
1 file changed
+2
-2
@@ -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.'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user