Fix InteractionManager-test.js

Summary:
Rather than specifying what not to mock, turn off autoMock for this test suite, and only mock BatchedBridge.

Fixes #4965
Closes https://github.com/facebook/react-native/pull/4967

Reviewed By: svcscm

Differential Revision: D2789079

Pulled By: androidtrunkagent

fb-gh-sync-id: 0d7024f92b630a3c0643ea2e1fde8d673fcdf6e1
This commit is contained in:
Adam Miskiewicz
2015-12-24 09:23:39 -08:00
committed by facebook-github-bot-6
parent 6cec263ca3
commit c972cce405

View File

@@ -5,9 +5,8 @@
'use strict';
jest
.dontMock('InteractionManager')
.dontMock('TaskQueue')
.dontMock('invariant');
.autoMockOff()
.mock('BatchedBridge');
function expectToBeCalledOnce(fn) {
expect(fn.mock.calls.length).toBe(1);