summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-09-29 14:37:09 +0200
committerErik Larkö <erik@mullvad.net>2017-10-02 08:20:41 +0200
commit5c499db133e292efec323340a2b9f37002638d1d (patch)
tree7958a5ef67a15651ee7d9bed4a200db5a3fc0aa5 /test
parent9547107bf5613eaa2cb430aafe24d1eff75f37c0 (diff)
downloadmullvadvpn-5c499db133e292efec323340a2b9f37002638d1d.tar.xz
mullvadvpn-5c499db133e292efec323340a2b9f37002638d1d.zip
Remove fastest and nearest servers
Diffstat (limited to 'test')
-rw-r--r--test/components/Connect.spec.js15
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',
});