mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
committed by
Paul O’Shannessy
parent
8664c8ac57
commit
32d3d7774a
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user