summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
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);
},