fix: add type checks for caught errors

This commit is contained in:
Justin Starry
2021-09-25 15:25:14 -04:00
committed by Justin Starry
parent aeb1be748e
commit 071cfd7484
3 changed files with 16 additions and 7 deletions

View File

@ -1,6 +1,6 @@
import {Client as LiveClient} from 'rpc-websockets';
import {expect} from 'chai';
import sinon from 'sinon';
import {createSandbox} from 'sinon';
import {Connection} from '../../src';
@ -17,7 +17,7 @@ type RpcResponse = {
};
const mockRpcSocket: Array<[RpcRequest, RpcResponse]> = [];
const sandbox = sinon.createSandbox();
const sandbox = createSandbox();
export const mockRpcMessage = ({
method,