mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
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:
committed by
facebook-github-bot-6
parent
6cec263ca3
commit
c972cce405
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user