diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-20 16:20:04 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-06-20 16:20:04 +0200 |
| commit | 648c6e06ce07503be4eebbd46bd7b2e843a862fe (patch) | |
| tree | e8867916c95f8855dee60ad06f44e94244aa60f3 /test/ipc.spec.js | |
| parent | 3e7a83f27a10cf6630ba5ff885b64cc24b02e9e3 (diff) | |
| parent | ffd34043d74cd59206c260b59d318c8e9bba9a39 (diff) | |
| download | mullvadvpn-648c6e06ce07503be4eebbd46bd7b2e843a862fe.tar.xz mullvadvpn-648c6e06ce07503be4eebbd46bd7b2e843a862fe.zip | |
Merge branch 'migrate-to-chai-spies'
Diffstat (limited to 'test/ipc.spec.js')
| -rw-r--r-- | test/ipc.spec.js | 6 |
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; |
