From 39dfac8456bb45b5111cf1dfd4d07ceb68cd8d3e Mon Sep 17 00:00:00 2001 From: Albert Olive Date: Thu, 10 Oct 2024 14:43:51 +0200 Subject: [PATCH] fix: tests --- packages/sdk/src/custodianApi/eca3/util/json-rpc-call.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk/src/custodianApi/eca3/util/json-rpc-call.test.ts b/packages/sdk/src/custodianApi/eca3/util/json-rpc-call.test.ts index 457713b7..5789de1c 100644 --- a/packages/sdk/src/custodianApi/eca3/util/json-rpc-call.test.ts +++ b/packages/sdk/src/custodianApi/eca3/util/json-rpc-call.test.ts @@ -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"); @@ -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"); });