summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-10-16 10:43:43 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-10-16 13:24:13 +0200
commit68287294867444ca96abad7deafe0c9050f2e127 (patch)
tree2829162c3331502bcbe26d415c8df87c15c3de20
parent811c1dc1fdd099f4e370ada8b884a093774b89a5 (diff)
downloadmullvadvpn-68287294867444ca96abad7deafe0c9050f2e127.tar.xz
mullvadvpn-68287294867444ca96abad7deafe0c9050f2e127.zip
Update tests for new IPs
-rw-r--r--test/components/Connect.spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/components/Connect.spec.js b/test/components/Connect.spec.js
index 62da014cd7..07c67a57bc 100644
--- a/test/components/Connect.spec.js
+++ b/test/components/Connect.spec.js
@@ -38,7 +38,7 @@ describe('components/Connect', () => {
it('shows the connection location when connecting', () => {
const component = renderConnecting({
getServerInfo: (_s) => ({
- address: '',
+ address: '185.65.132.102',
name: '',
location: [0, 0],
country: 'norway',
@@ -58,7 +58,7 @@ describe('components/Connect', () => {
it('shows the connection location when connected', () => {
const component = renderConnected({
getServerInfo: (_s) => ({
- address: '',
+ address: '185.65.132.102',
name: '',
location: [0, 0],
country: 'sweden',
@@ -78,21 +78,21 @@ describe('components/Connect', () => {
it('shows the connection location when disconnected', () => {
const component = renderNotConnected({
getServerInfo: (_s) => ({
- address: '',
+ address: '\u2003',
name: '',
location: [0, 0],
country: 'sweden',
city: 'gothenburg',
}),
}, {
- clientIp: '78.65.17.155',
+ clientIp: '\u2003',
});
const countryAndCity = component.find('.connect__status-location');
const ipAddr = component.find('.connect__status-ipaddress');
expect(countryAndCity.text()).to.contain('\u2002');
expect(countryAndCity.text()).to.not.contain('\u2003');
- expect(ipAddr.text()).to.contain('78.65.17.155');
+ expect(ipAddr.text()).to.contain('\u2003');
});
it('shows the country name in the location switcher', () => {