summaryrefslogtreecommitdiffhomepage
path: root/test/mocks
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-01-11 15:44:50 +0100
committerLinus Färnstrand <linus@mullvad.net>2018-01-15 16:21:31 +0100
commit928615a5a91ef4a3f52fbd4a6629e86993a1a3aa (patch)
treed76821ad40b0d72f359051945b2d5c415c99fca2 /test/mocks
parentfc4178d7e3329fb1fd0014e4ce349a79eafeca51 (diff)
downloadmullvadvpn-928615a5a91ef4a3f52fbd4a6629e86993a1a3aa.tar.xz
mullvadvpn-928615a5a91ef4a3f52fbd4a6629e86993a1a3aa.zip
Adapt frontend to removed ip call and changed location struct
Diffstat (limited to 'test/mocks')
-rw-r--r--test/mocks/ipc.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/mocks/ipc.js b/test/mocks/ipc.js
index fc035f55ed..2ba32ecf2f 100644
--- a/test/mocks/ipc.js
+++ b/test/mocks/ipc.js
@@ -56,14 +56,13 @@ export function newMockIpc() {
shutdown: () => Promise.resolve(),
- getPublicIp: () => Promise.resolve('1.2.3.4'),
-
getLocation: () => Promise.resolve({
+ ip: '',
country: '',
- country_code: '',
city: '',
- city_code: '',
- position: [0, 0],
+ latitude: 0.0,
+ longitude: 0.0,
+ mullvad_exit_ip: false,
}),
getState: () => Promise.resolve({