mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix strict mode violoation in test
This commit is contained in:
@@ -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