Skip to content

Commit 1b67ac9

Browse files
jeffmozpao
authored andcommitted
Make sure the mock is cleared in the EventEmitter test
1 parent 29190a2 commit 1b67ac9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/__tests__/ReactEventEmitter-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function registerSimpleTestHandler() {
8686
describe('ReactEventEmitter', function() {
8787
beforeEach(function() {
8888
require('mock-modules').dumpCache();
89+
LISTENER.mockClear();
8990
EventPluginHub = require('EventPluginHub');
9091
TapEventPlugin = require('TapEventPlugin');
9192
ReactMount = require('ReactMount');

0 commit comments

Comments
 (0)