Skip to content

Commit

Permalink
Mock connCheck in Location test as it's not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Apr 23, 2024
1 parent 8264dc8 commit 10e7849
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Location.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ jest.mock('@/composables/useListProxies', () => ({
})),
}));

jest.mock('@/helpers/connCheck', () => ({
connCheck: jest.fn().mockResolvedValue({
ip: '193.32.126.67',
city: 'Paris',
country: 'France',
mullvad_exit_ip: true,
mullvad_exit_ip_hostname: 'fr-par-wg-002.relays.mullvad.net',
mullvad_server_type: 'wireguard',
}),
}));

describe('Location', () => {
it('should show two countries', async () => {
const wrapper = mount(Location);
Expand Down

0 comments on commit 10e7849

Please sign in to comment.