diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-07-18 18:02:54 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-07-26 11:25:54 +0100 |
| commit | 7106c34585f3db116307bc908f1eb1fbf51a73cf (patch) | |
| tree | 196e3baf05d1366ae59d8ac6f1fd0a189defec62 /gui/test | |
| parent | ace147c273e058e85df619fb4300e3953cedd2dd (diff) | |
| download | mullvadvpn-7106c34585f3db116307bc908f1eb1fbf51a73cf.tar.xz mullvadvpn-7106c34585f3db116307bc908f1eb1fbf51a73cf.zip | |
Adjust GUI code to the new settings schema
Diffstat (limited to 'gui/test')
| -rw-r--r-- | gui/test/relay-settings-builder.spec.ts | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/gui/test/relay-settings-builder.spec.ts b/gui/test/relay-settings-builder.spec.ts index fd7f4c1cf4..f9ceccd744 100644 --- a/gui/test/relay-settings-builder.spec.ts +++ b/gui/test/relay-settings-builder.spec.ts @@ -54,13 +54,9 @@ describe('Relay settings builder', () => { .build(), ).to.deep.equal({ normal: { - tunnel: { - only: { - openvpn: { - port: 'any', - protocol: 'any', - }, - }, + openvpnConstraints: { + port: 'any', + protocol: 'any', }, }, }); @@ -75,13 +71,9 @@ describe('Relay settings builder', () => { .build(), ).to.deep.equal({ normal: { - tunnel: { - only: { - openvpn: { - port: { only: 80 }, - protocol: { only: 'tcp' }, - }, - }, + openvpnConstraints: { + port: { only: 80 }, + protocol: { only: 'tcp' }, }, }, }); |
