@samitouri / QOS-React-2 / commits / 32d3d7774a

Use dumpCache() rather than manual reset

I forgot this module existed until @benjamn reminded we had a way to do it.

Pete Hunt committed Sep 4, 2013 at 15:51 UTC 32d3d7774afde084888a6cf7885cb0da84b79cd6
1 file changed +2 -4
src/core/__tests__/ReactComponent-test.js
+2 -4
@@ -27,14 +27,12 @@ var reactComponentExpect;
27
28 describe('ReactComponent', function() {
29 beforeEach(function() {
30 + require('mock-modules').dumpCache();
31 +
32 React = require('React');
33 ReactMount = require('ReactMount');
34 ReactTestUtils = require('ReactTestUtils');
35 reactComponentExpect = require('reactComponentExpect');
34 -
35 - // This module is whitelisted from automocking so manually
36 - // reset it.
37 - ReactMount.allowFullPageRender = false;
36 });
37
38 it('should be able to switch root constructors via state', function() {