diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-09-08 11:31:09 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-09-08 14:23:27 +0200 |
| commit | d541f4ee98182faa6c4e52727c948612b4d7ad53 (patch) | |
| tree | bb2e6eec41581f3018fbb22a6c9afb5962e23fb3 /test | |
| parent | 057f46bc30102b48b54775c4f43288c87e8203bb (diff) | |
| download | mullvadvpn-d541f4ee98182faa6c4e52727c948612b4d7ad53.tar.xz mullvadvpn-d541f4ee98182faa6c4e52727c948612b4d7ad53.zip | |
Replace setCountry with setCustomRelay
Diffstat (limited to 'test')
| -rw-r--r-- | test/connect.spec.js | 6 | ||||
| -rw-r--r-- | test/mocks/ipc.js | 2 |
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: () => { |
