Use dumpCache() rather than manual reset

I forgot this module existed until @benjamn reminded we had a way to do it.
This commit is contained in:
Pete Hunt
2013-09-04 15:54:27 -07:00
committed by Paul O’Shannessy
parent 8664c8ac57
commit 32d3d7774a
+2 -4
View File
@@ -27,14 +27,12 @@ var reactComponentExpect;
describe('ReactComponent', function() {
beforeEach(function() {
require('mock-modules').dumpCache();
React = require('React');
ReactMount = require('ReactMount');
ReactTestUtils = require('ReactTestUtils');
reactComponentExpect = require('reactComponentExpect');
// This module is whitelisted from automocking so manually
// reset it.
ReactMount.allowFullPageRender = false;
});
it('should be able to switch root constructors via state', function() {