summaryrefslogtreecommitdiffhomepage
path: root/test/components
diff options
context:
space:
mode:
Diffstat (limited to 'test/components')
-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',
},
};