summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-09-08 11:31:09 +0200
committerErik Larkö <erik@mullvad.net>2017-09-08 14:23:27 +0200
commitd541f4ee98182faa6c4e52727c948612b4d7ad53 (patch)
treebb2e6eec41581f3018fbb22a6c9afb5962e23fb3 /test
parent057f46bc30102b48b54775c4f43288c87e8203bb (diff)
downloadmullvadvpn-d541f4ee98182faa6c4e52727c948612b4d7ad53.tar.xz
mullvadvpn-d541f4ee98182faa6c4e52727c948612b4d7ad53.zip
Replace setCountry with setCustomRelay
Diffstat (limited to 'test')
-rw-r--r--test/connect.spec.js6
-rw-r--r--test/mocks/ipc.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/connect.spec.js b/test/connect.spec.js
index 9ecedb53a1..98aba67356 100644
--- a/test/connect.spec.js
+++ b/test/connect.spec.js
@@ -7,13 +7,13 @@ import { IpcChain } from './helpers/IpcChain';
describe('connect', () => {
- it('should invoke set_country and then connect in the backend', (done) => {
+ it('should invoke set_custom_relay and then connect in the backend', (done) => {
const { store, mockIpc, backend } = setupBackendAndStore();
const chain = new IpcChain(mockIpc);
- chain.require('setCountry')
+ chain.require('setCustomRelay')
.withInputValidation(
- (country) => expect(country).to.equal('example.com')
+ (relayHostName) => expect(relayHostName).to.equal('example.com')
)
.done();
diff --git a/test/mocks/ipc.js b/test/mocks/ipc.js
index d28c49e6f6..472811ef4c 100644
--- a/test/mocks/ipc.js
+++ b/test/mocks/ipc.js
@@ -27,7 +27,7 @@ export function newMockIpc() {
setAccount: () => {
return new Promise(r => r());
},
- setCountry: () => {
+ setCustomRelay: () => {
return new Promise(r => r());
},
connect: () => {