@samitouri / QOS-React-2 / commits / f9c393f4fb

Fix strict mode violoation in test

Paul O’Shannessy committed Jan 20, 2015 at 18:26 UTC f9c393f4fb32a1263dd64eda347bba81e40473cb
1 file changed +2 -2
src/core/__tests__/ReactComponentLifeCycle-test.js
+2 -2
@@ -239,10 +239,10 @@ describe('ReactComponentLifeCycle', function() {
239 }
240 });
241 expect(function() {
242 - instance = ReactTestUtils.renderIntoDocument(<StatefulComponent />);
242 + ReactTestUtils.renderIntoDocument(<StatefulComponent />);
243 }).toThrow(
244 'Invariant Violation: setState(...): Can only update a mounted or ' +
245 - 'mounting component. This usually means you called setState() on an ' +
245 + 'mounting component. This usually means you called setState() on an ' +
246 'unmounted component.'
247 );
248 });