From 32d3d7774afde084888a6cf7885cb0da84b79cd6 Mon Sep 17 00:00:00 2001 From: Pete Hunt Date: Wed, 4 Sep 2013 15:51:24 -0700 Subject: [PATCH] Use dumpCache() rather than manual reset I forgot this module existed until @benjamn reminded we had a way to do it. --- src/core/__tests__/ReactComponent-test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/__tests__/ReactComponent-test.js b/src/core/__tests__/ReactComponent-test.js index 8455a661e7..2acf98a8ad 100644 --- a/src/core/__tests__/ReactComponent-test.js +++ b/src/core/__tests__/ReactComponent-test.js @@ -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() {