Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albertolive committed Oct 10, 2024
1 parent ebcb387 commit 39dfac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/custodianApi/eca3/util/json-rpc-call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("json-rpc-call", () => {
describe("json-rpc-call", () => {
it("should call the JSON RPC endpoint with the appropriate method and parameters", async () => {
fetchMock.mockResponseOnce(JSON.stringify({ result: "test" }));
const call = factory("http://test/json-rpc");
const call = factory("http://test/json-rpc", jest.fn());

await call("test", { some: "parameter" }, "access_token");

Expand All @@ -37,7 +37,7 @@ describe("json-rpc-call", () => {
}),
);

const call = factory("http://test/json-rpc");
const call = factory("http://test/json-rpc", jest.fn());

await expect(call("test", { some: "parameter" }, "access_token")).rejects.toThrow("Test error");
});
Expand Down

0 comments on commit 39dfac8

Please sign in to comment.