Skip to content

Commit

Permalink
test: remove redundant fastest rpc handler mock
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Jan 1, 2025
1 parent bafdea0 commit 04b256f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/unit/post-order.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 04b256f

Please sign in to comment.