react-native/jest
Tim Wang 7fb3a9229d Fix Jest mocks for NetInfo module.
Summary:
Jest mock for `NetInfo.getConnectionInfo()` is missing. Tests are fail with error message:
```
TypeError: _reactNative.NetInfo.getConnectionInfo is not a function
```
And cleaned code in this files for unified code styles.

Run test with usage of `NetInfo.getConnectionInfo()`

[GENERAL] [BUGFIX] [jest/setup.js] - Fix Jest mocks for NetInfo module
Closes https://github.com/facebook/react-native/pull/16722

Differential Revision: D6298133

Pulled By: hramos

fbshipit-source-id: 589cf6fed93965e7a09823015f2793f5c68a9c3b
2017-11-10 10:12:30 -08:00
..
.eslintrc Disallow trailing commas in react-native-github 2017-08-17 16:20:04 -07:00
assetFileTransformer.js Fix test for RN asset 2017-09-07 01:55:56 -07:00
mockComponent.js Revert D5409825: [RN] Convert easy files to Prettier 2017-07-12 19:23:58 -07:00
preprocessor.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
setup.js Fix Jest mocks for NetInfo module. 2017-11-10 10:12:30 -08:00