JSONRPC request/response handler opts (#4722)

* JSONRPC request/response handler opts

* Fix test

* CHANGELOG
This commit is contained in:
Jaco
2022-04-08 08:51:44 +03:00
committed by GitHub
parent ae2422f350
commit ba188dcc0d
8 changed files with 59 additions and 60 deletions
@@ -15,7 +15,7 @@ describe('decodeResponse', (): void => {
it('expects a non-empty input object', (): void => {
expect(
() => coder.decodeResponse(undefined as unknown as JsonRpcResponse)
).toThrow(/Empty response/);
).toThrow(/Invalid jsonrpc/);
});
it('expects a valid jsonrpc field', (): void => {