Skip to content

Commit

Permalink
Fixed the type bug in the new networkProvider mock
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Wang <[email protected]>
  • Loading branch information
jian4on committed Jan 10, 2025
1 parent 55d0a71 commit 28cf25d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/legacy/core/__tests__/contexts/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const networkContext = {
silentAssertConnectedNetwork: jest.fn(),
displayNetInfoModal: jest.fn(),
hideNetInfoModal: jest.fn(),
assertNetworkReachable: jest.fn(),
// assertNetworkReachable: jest.fn(),
assertInternetReachable: jest.fn(),
assertMediatorReachable: jest.fn(),
}

export default networkContext
3 changes: 2 additions & 1 deletion packages/legacy/core/__tests__/screens/Chat.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ describe('Chat Screen', () => {
jest.spyOn(network, 'useNetwork').mockImplementation(() => ({
silentAssertConnectedNetwork: () => true,
assertNetworkConnected: () => true,
assertNetworkReachable: jest.fn(),
assertInternetReachable: () => true,
assertMediatorReachable: jest.fn(),
displayNetInfoModal: jest.fn(),
hideNetInfoModal: jest.fn(),
}))
Expand Down

0 comments on commit 28cf25d

Please sign in to comment.