summaryrefslogtreecommitdiffhomepage
path: root/test/ipc.spec.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-19 14:35:18 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-20 15:36:17 +0200
commit46672191cb3ee17b82f4af412bd00c75e138eaf9 (patch)
treea354207aab5af7a270ae2a8e80d5cecccf68d0c2 /test/ipc.spec.js
parent46125ddac41dd0b5915940a5e9cf0e9b547c56d9 (diff)
downloadmullvadvpn-46672191cb3ee17b82f4af412bd00c75e138eaf9.tar.xz
mullvadvpn-46672191cb3ee17b82f4af412bd00c75e138eaf9.zip
Make expect and spy global for all tests
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;