diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-10-02 08:49:11 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-10-02 08:49:11 +0200 |
| commit | daaa5524429e9f21f66aee6dac74169131421cef (patch) | |
| tree | 7958a5ef67a15651ee7d9bed4a200db5a3fc0aa5 /test/components | |
| parent | 9547107bf5613eaa2cb430aafe24d1eff75f37c0 (diff) | |
| parent | 5c499db133e292efec323340a2b9f37002638d1d (diff) | |
| download | mullvadvpn-daaa5524429e9f21f66aee6dac74169131421cef.tar.xz mullvadvpn-daaa5524429e9f21f66aee6dac74169131421cef.zip | |
Merge branch 'remove-fastest-nearest'
Diffstat (limited to 'test/components')
| -rw-r--r-- | test/components/Connect.spec.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/test/components/Connect.spec.js b/test/components/Connect.spec.js index f23f0d712c..9c280c7308 100644 --- a/test/components/Connect.spec.js +++ b/test/components/Connect.spec.js @@ -75,10 +75,8 @@ describe('components/Connect', () => { expect(ipAddr.text()).to.contain('78.65.17.155'); }); - it('shows the country name or fastest/nearest in the location switcher', () => { + it('shows the country name in the location switcher', () => { const servers = { - 'fastest': { name: 'Fastest' }, - 'nearest': { name: 'Nearest' }, 'se1.mullvad.net': { name: 'Sweden' }, }; const getServerInfo = (key) => servers[key] || defaultServer; @@ -87,17 +85,6 @@ describe('components/Connect', () => { }); const locationSwitcher = component.find('.connect__server'); - - component.setProps({ - preferredServer: 'fastest', - }); - expect(locationSwitcher.text()).to.contain(servers['fastest'].name); - - component.setProps({ - preferredServer: 'nearest', - }); - expect(locationSwitcher.text()).to.contain(servers['nearest'].name); - component.setProps({ preferredServer: 'se1.mullvad.net', }); |
