Skip to content

Commit

Permalink
Fix process webhook saleor test
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed Mar 1, 2024
1 parent 89b1cf0 commit c1710c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-walls-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@saleor/app-sdk": patch
---

Fix process saleor webhook test
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ describe("processAsyncSaleorWebhook", () => {
).rejects.toThrow("Request signature check failed");
});

it("Fallback to null if saleor-schema-version header is missing", async () => {
delete mockRequest.headers["saleor-schema-version"];
it("Fallback to null if version is missing on payload", async () => {
await expect(
processSaleorWebhook({
req: mockRequest,
Expand Down

0 comments on commit c1710c3

Please sign in to comment.