Created
August 3, 2020 07:38
-
-
Save edvinasbartkus/202c2e8558af120953672279db405242 to your computer and use it in GitHub Desktop.
Mock __mocks__/@react-native-community/netinfo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
getCurrentConnectivity: jest.fn(), | |
isConnectionMetered: jest.fn(), | |
addListener: jest.fn(), | |
removeListeners: jest.fn(), | |
isConnected: { | |
fetch: () => { | |
return Promise.resolve(true) | |
}, | |
addEventListener: jest.fn(), | |
removeEventListener: jest.fn(), | |
}, | |
fetch: jest.fn(), | |
}; | |
export const useNetInfo = () => ({}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment