From 1f4bb64a3e6ec0abe762d3110e5d57af7d1d2131 Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Mon, 6 Mar 2023 15:06:10 +0100 Subject: [PATCH] Fix test --- .../next/saleor-webhooks/process-saleor-webhook.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/next/saleor-webhooks/process-saleor-webhook.test.ts b/src/handlers/next/saleor-webhooks/process-saleor-webhook.test.ts index ead2d3d..c6827d1 100644 --- a/src/handlers/next/saleor-webhooks/process-saleor-webhook.test.ts +++ b/src/handlers/next/saleor-webhooks/process-saleor-webhook.test.ts @@ -137,7 +137,7 @@ describe("processAsyncSaleorWebhook", () => { it("Throw error on wrong signature", async () => { mockRequest.headers["saleor-signature"] = "wrong_signature"; - vi.mock("./../../fetch-remote-jwks", () => ({ + vi.mock("../../../fetch-remote-jwks", () => ({ fetchRemoteJwks: vi.fn(async () => "wrong_signature"), }));