summaryrefslogtreecommitdiffhomepage
path: root/test/components
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-07-16 16:33:56 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-07-16 16:33:56 +0200
commit7aa861495ffe90e0b5a9b9c67b8ccf0ad62c2882 (patch)
tree212056880e20c6a3bdcc9e1e807bd75b1a4199af /test/components
parent901d0135651d010088105e98204af7618347389d (diff)
parent6c0618e8b500499576cb1b6969ce268c90df01b1 (diff)
downloadmullvadvpn-7aa861495ffe90e0b5a9b9c67b8ccf0ad62c2882.tar.xz
mullvadvpn-7aa861495ffe90e0b5a9b9c67b8ccf0ad62c2882.zip
Merge branch 'auto-connect-settings'
Diffstat (limited to 'test/components')
-rw-r--r--test/components/Preferences.spec.js6
-rw-r--r--test/components/SelectLocation.spec.js1
-rw-r--r--test/components/Settings.spec.js1
3 files changed, 7 insertions, 1 deletions
diff --git a/test/components/Preferences.spec.js b/test/components/Preferences.spec.js
index 280b24ccd7..f8c38f9493 100644
--- a/test/components/Preferences.spec.js
+++ b/test/components/Preferences.spec.js
@@ -17,7 +17,11 @@ describe('components/Preferences', () => {
function makeProps(props) {
return {
onClose: () => {},
- onChangeAllowLan: () => {},
+ setAutoConnect: () => {},
+ setAutoStart: (_autoStart) => Promise.resolve(),
+ getAutoStart: () => false,
+ setAllowLan: () => {},
+ allowAutoConnect: false,
allowLan: false,
...props,
};
diff --git a/test/components/SelectLocation.spec.js b/test/components/SelectLocation.spec.js
index c9a1f08864..dbfe15221a 100644
--- a/test/components/SelectLocation.spec.js
+++ b/test/components/SelectLocation.spec.js
@@ -39,6 +39,7 @@ describe('components/SelectLocation', () => {
],
},
],
+ autoConnect: false,
allowLan: false,
};
diff --git a/test/components/Settings.spec.js b/test/components/Settings.spec.js
index ffdf0bf545..2a152e1cc8 100644
--- a/test/components/Settings.spec.js
+++ b/test/components/Settings.spec.js
@@ -42,6 +42,7 @@ describe('components/Settings', () => {
},
},
relayLocations: [],
+ autoConnect: false,
allowLan: false,
};