Skip to content

Commit

Permalink
Fixed the jest.spy bug in Chat screen test case
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 28cf25d commit 2e053d2
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -109,7 +109,8 @@ describe('Chat screen with messages', () => {
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 2e053d2

Please sign in to comment.