react-native/jest
Nelen ed3b71fc59 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
2016-12-12 11:37:08 +00:00
..
mockComponent.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
preprocessor.js Moving the jest configuration from jest-react-native to react native. 2016-10-17 08:44:05 -07:00
setup.js Added mocked functions to StatusBarManager 2016-12-12 11:37:08 +00:00