Add UIManager method mocks to jest/setup.js
Reviewed By: cpojer Differential Revision: D4420536 fbshipit-source-id: 4fb5c1857974b4d32e21de6d5b5b581213aad87b
This commit is contained in:
parent
5a09b2861a
commit
2275ca5a7f
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue