Add UIManager method mocks to jest/setup.js

Reviewed By: cpojer

Differential Revision: D4420536

fbshipit-source-id: 4fb5c1857974b4d32e21de6d5b5b581213aad87b
This commit is contained in:
Alex Kotliarskyi 2017-01-20 16:41:24 -08:00 committed by Facebook Github Bot
parent 5a09b2861a
commit 2275ca5a7f
1 changed files with 7 additions and 0 deletions

View File

@ -130,6 +130,7 @@ const mockNativeModules = {
scriptURL: null, scriptURL: null,
}, },
StatusBarManager: { StatusBarManager: {
setColor: jest.fn(),
setStyle: jest.fn(), setStyle: jest.fn(),
setHidden: jest.fn(), setHidden: jest.fn(),
setNetworkActivityIndicatorVisible: jest.fn(), setNetworkActivityIndicatorVisible: jest.fn(),
@ -141,6 +142,12 @@ const mockNativeModules = {
deleteTimer: jest.fn(), deleteTimer: jest.fn(),
}, },
UIManager: { UIManager: {
createView: jest.fn(),
setChildren: jest.fn(),
manageChildren: jest.fn(),
updateView: jest.fn(),
removeSubviewsFromContainerWithID: jest.fn(),
replaceExistingNonRootView: jest.fn(),
customBubblingEventTypes: {}, customBubblingEventTypes: {},
customDirectEventTypes: {}, customDirectEventTypes: {},
Dimensions: { Dimensions: {