summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-10-16 11:22:39 +0200
committerErik Larkö <erik@mullvad.net>2017-10-16 11:22:39 +0200
commit5c70a74bd6fd94d6c1a71b327d02012e85198aeb (patch)
tree71a59da8aedaa09c15d5c9e34e4cdc55c72ba8ed /test
parent992f7946dbe9004d88a331b97ea9e030701599ea (diff)
downloadmullvadvpn-5c70a74bd6fd94d6c1a71b327d02012e85198aeb.tar.xz
mullvadvpn-5c70a74bd6fd94d6c1a71b327d02012e85198aeb.zip
rename auth -> authentication
Diffstat (limited to 'test')
-rw-r--r--test/auth.spec.js4
-rw-r--r--test/mocks/ipc.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/auth.spec.js b/test/auth.spec.js
index 6bb23a7136..c3fd78c83d 100644
--- a/test/auth.spec.js
+++ b/test/auth.spec.js
@@ -16,7 +16,7 @@ describe('authentication', () => {
const chain = new IpcChain(mockIpc);
- chain.require('auth')
+ chain.require('authenticate')
.withInputValidation( secret => {
expect(secret).to.equal(credentials.sharedSecret);
})
@@ -36,7 +36,7 @@ describe('authentication', () => {
const { mockIpc, backend } = setupBackendAndStore();
let authCount = 0;
- mockIpc.auth = () => {
+ mockIpc.authenticate = () => {
authCount++;
return Promise.resolve();
};
diff --git a/test/mocks/ipc.js b/test/mocks/ipc.js
index 2672a431fd..5b337ebbc9 100644
--- a/test/mocks/ipc.js
+++ b/test/mocks/ipc.js
@@ -7,7 +7,7 @@ interface MockIpc {
-getAccountData: *;
-connect: *;
-getAccount: *;
- -auth: *;
+ -authenticate: *;
}
export function newMockIpc() {
@@ -63,7 +63,7 @@ export function newMockIpc() {
l(state);
}
},
- auth: (_secret: string) => Promise.resolve(),
+ authenticate: (_secret: string) => Promise.resolve(),
setCloseConnectionHandler: (listener: () => void) => {
connectionCloseListeners.push(listener);
},