From 10e7849490d480ef93bd8354f8babf5f2e785005 Mon Sep 17 00:00:00 2001 From: rui hildt Date: Tue, 23 Apr 2024 13:32:43 +0200 Subject: [PATCH] Mock connCheck in Location test as it's not used. --- src/components/Location.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/Location.test.ts b/src/components/Location.test.ts index 09932d2c..a60dd399 100644 --- a/src/components/Location.test.ts +++ b/src/components/Location.test.ts @@ -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);