summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-11-09 09:03:45 +0100
committerErik Larkö <erik@mullvad.net>2017-11-09 09:03:45 +0100
commit7f6c8398eacb5421b51c1f02befde4e4f6402fc7 (patch)
tree93456d22efbf668e39147ffb50b3beee37272a8c /test
parenta77e01a50b165fd8d6e2db96652a1fcc9a220723 (diff)
downloadmullvadvpn-7f6c8398eacb5421b51c1f02befde4e4f6402fc7.tar.xz
mullvadvpn-7f6c8398eacb5421b51c1f02befde4e4f6402fc7.zip
Redid the settings state and inlined a few components
Diffstat (limited to 'test')
-rw-r--r--test/components/Connect.spec.js10
-rw-r--r--test/components/SelectLocation.spec.js6
-rw-r--r--test/components/Settings.spec.js6
3 files changed, 8 insertions, 14 deletions
diff --git a/test/components/Connect.spec.js b/test/components/Connect.spec.js
index 5c342bff12..4b84b3b8da 100644
--- a/test/components/Connect.spec.js
+++ b/test/components/Connect.spec.js
@@ -108,7 +108,7 @@ describe('components/Connect', () => {
component.setProps({
settings: {
relayConstraints: {
- host: { only: 'se1.mullvad.net' },
+ host: 'se1.mullvad.net',
},
},
});
@@ -187,11 +187,9 @@ const defaultProps = {
accountExpiry: '',
settings: {
relayConstraints: {
- host: { only: 'www.example.com' },
- tunnel: { openvpn: {
- port: 'any',
- protocol: 'any',
- }},
+ host: 'www.example.com',
+ port: 'any',
+ protocol: 'any',
},
},
connection: defaultConnection,
diff --git a/test/components/SelectLocation.spec.js b/test/components/SelectLocation.spec.js
index a3565a6704..28c9299807 100644
--- a/test/components/SelectLocation.spec.js
+++ b/test/components/SelectLocation.spec.js
@@ -12,10 +12,8 @@ describe('components/SelectLocation', () => {
const state: SettingsReduxState = {
relayConstraints: {
host: 'any',
- tunnel: { openvpn: {
- port: 'any',
- protocol: 'any',
- }},
+ port: 'any',
+ protocol: 'any',
},
};
diff --git a/test/components/Settings.spec.js b/test/components/Settings.spec.js
index 2f562051b5..85fd72ece5 100644
--- a/test/components/Settings.spec.js
+++ b/test/components/Settings.spec.js
@@ -34,10 +34,8 @@ describe('components/Settings', () => {
const settingsState: SettingsReduxState = {
relayConstraints: {
host: 'any',
- tunnel: { openvpn: {
- port: 'any',
- protocol: 'any',
- }},
+ port: 'any',
+ protocol: 'any',
},
};