Added mocked functions to StatusBarManager

Summary:
**Description:**
Jest tests that use that StatusBar failing because the status bar functions aren't mocked.
Errors I ran into:
`TypeError: StatusBarManager. setNetworkActivityIndicatorVisible is not a function`
`TypeError: StatusBarManager. setHidden is not a function`
`TypeError: StatusBarManager. setStyle is not a function`

**Fix:**
Added mocks for all the functions that the StatusBar offers according to the docs: https://facebook.github.io/react-native/docs/statusbar.html

**Test plan (required)**
Verify that the tests using StatusBar and its functions succeed.
Closes https://github.com/facebook/react-native/pull/11322

Differential Revision: D4284536

Pulled By: cpojer

fbshipit-source-id: b67be8c0595d91ee9aca4784f457c0959d7e45d5
This commit is contained in:
Nelen 2016-12-06 05:43:42 -08:00 коммит произвёл Facebook Github Bot
Родитель 2ab5d2809f
Коммит 2190221c44
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -131,7 +131,13 @@ const mockNativeModules = {
SourceCode: {
scriptURL: null,
},
StatusBarManager: {},
StatusBarManager: {
setStyle: jest.fn(),
setHidden: jest.fn(),
setNetworkActivityIndicatorVisible: jest.fn(),
setBackgroundColor: jest.fn(),
setTranslucent: jest.fn(),
},
Timing: {
createTimer: jest.fn(),
deleteTimer: jest.fn(),