Skip to content

Commit 5dab253

Browse files
Jeppe Reinholdmatt-oakes
Jeppe Reinhold
authored andcommitted
docs: Update jest mock guide to match V3 API (react-native-netinfo#109)
[ci skip]
1 parent 1a98dc9 commit 5dab253

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ You should then add the following to your Jest setup file to mock the NetInfo Na
284284
import { NativeModules } from 'react-native';
285285

286286
NativeModules.RNCNetInfo = {
287-
getCurrentConnectivity: jest.fn(),
288-
isConnectionMetered: jest.fn(),
287+
getCurrentState: jest.fn(),
289288
addListener: jest.fn(),
290289
removeListeners: jest.fn()
291290
};

0 commit comments

Comments
 (0)