summaryrefslogtreecommitdiffhomepage
path: root/test/ipc.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ipc.spec.js')
-rw-r--r--test/ipc.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ipc.spec.js b/test/ipc.spec.js
index 43d6e9e2f4..1c8b19b5a6 100644
--- a/test/ipc.spec.js
+++ b/test/ipc.spec.js
@@ -2,8 +2,6 @@
import Ipc from '../app/lib/jsonrpc-ws-ipc';
import jsonrpc from 'jsonrpc-lite';
-import { expect } from 'chai';
-import assert from 'assert';
import type { JsonRpcMessage } from '../app/lib/jsonrpc-ws-ipc';
describe('The IPC server', () => {
@@ -45,7 +43,9 @@ describe('The IPC server', () => {
const decoy = ipc
.send('a decoy', [], 1)
- .then(() => assert(false, 'Should not be called'))
+ .then(() => {
+ throw new Error('Should not be called');
+ })
.catch((e) => {
if (e.name !== 'TimeOutError') {
throw e;