Skip to content

Commit

Permalink
fix: more specific assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Jul 29, 2019
1 parent 5496caf commit 374beb3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/RequestManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,8 @@ describe("client-js", () => {
expect(() => serverTransport.sendData(JSON.stringify({
jsonrpc: "2.0",
id: 10,
error: {
code: 0,
message: "out of order",
data: {
foo: "bar",
},
},
}))).toThrow();
result: 123,
}))).toThrow("Received an unrecognized response id: 10. Valid ids are: ");
});

describe("stopBatch", () => {
Expand Down

0 comments on commit 374beb3

Please sign in to comment.