Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Secreto31126 authored Sep 6, 2024
1 parent d21bdec commit d3bea58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/index.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,11 @@ describe("WhatsAppAPI", function () {

it("should throw 401 if the signature doesn't match the hash", async function () {
await rejects(
Whatsapp.post(valid_message_mock, body, "wrong"),
Whatsapp.post(
valid_message_mock,
body,
"sha256=wrong"
),
threw(401)
);
});
Expand Down

0 comments on commit d3bea58

Please sign in to comment.