mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 13:03:08 +08:00
Add UIManager method mocks to jest/setup.js
Reviewed By: cpojer Differential Revision: D4420536 fbshipit-source-id: 4fb5c1857974b4d32e21de6d5b5b581213aad87b
This commit is contained in:
committed by
Facebook Github Bot
parent
5a09b2861a
commit
2275ca5a7f
@@ -130,6 +130,7 @@ const mockNativeModules = {
|
||||
scriptURL: null,
|
||||
},
|
||||
StatusBarManager: {
|
||||
setColor: jest.fn(),
|
||||
setStyle: jest.fn(),
|
||||
setHidden: jest.fn(),
|
||||
setNetworkActivityIndicatorVisible: jest.fn(),
|
||||
@@ -141,6 +142,12 @@ const mockNativeModules = {
|
||||
deleteTimer: jest.fn(),
|
||||
},
|
||||
UIManager: {
|
||||
createView: jest.fn(),
|
||||
setChildren: jest.fn(),
|
||||
manageChildren: jest.fn(),
|
||||
updateView: jest.fn(),
|
||||
removeSubviewsFromContainerWithID: jest.fn(),
|
||||
replaceExistingNonRootView: jest.fn(),
|
||||
customBubblingEventTypes: {},
|
||||
customDirectEventTypes: {},
|
||||
Dimensions: {
|
||||
|
||||
Reference in New Issue
Block a user