summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mocks/ipc.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/mocks/ipc.js b/test/mocks/ipc.js
index fc5dede75e..8f0b82ba37 100644
--- a/test/mocks/ipc.js
+++ b/test/mocks/ipc.js
@@ -1,5 +1,5 @@
// @flow
-import type { IpcFacade, BackendState } from '../../app/lib/ipc-facade';
+import type { IpcFacade, BackendState, IpcCredentials } from '../../app/lib/ipc-facade';
interface MockIpc {
sendNewState: (BackendState) => void;
@@ -14,10 +14,7 @@ export function newMockIpc() {
const mockIpc: IpcFacade & MockIpc = {
- setConnectionString: (_str: string) => {},
- authenticate: (_sharedSecret) => {
- return new Promise(r => r());
- },
+ setCredentials: (_credentials: IpcCredentials) => {},
getAccountData: (accountToken) => {
return new Promise(r => r({
accountToken: accountToken,