From 04b256fd6818235736777af5d20e08d0a3869bd2 Mon Sep 17 00:00:00 2001 From: EresDev Date: Wed, 1 Jan 2025 06:08:46 -0500 Subject: [PATCH] test: remove redundant fastest rpc handler mock --- tests/unit/post-order.test.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/unit/post-order.test.ts b/tests/unit/post-order.test.ts index 9080077e..2d987d88 100644 --- a/tests/unit/post-order.test.ts +++ b/tests/unit/post-order.test.ts @@ -462,11 +462,6 @@ describe("Post order for a payment card", () => { }); async function initMocks(receipt: object = receiptGeneric, minedTx: object = minedTxGeneric, parsedTx?: object) { - const helpers = await import("../../shared/helpers"); - vi.spyOn(helpers, "getFastestRpcUrl").mockImplementation(async () => { - return "http://127.0.0.1:8545"; - }); - const providers = await import("@ethersproject/providers"); vi.spyOn(providers.JsonRpcProvider.prototype, "getTransactionReceipt").mockImplementationOnce(async () => { return receipt as TransactionReceipt;