Skip to content

Commit d3bea58

Browse files
authored
Fixed unit test
1 parent d21bdec commit d3bea58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/index.test.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,11 @@ describe("WhatsAppAPI", function () {
16291629

16301630
it("should throw 401 if the signature doesn't match the hash", async function () {
16311631
await rejects(
1632-
Whatsapp.post(valid_message_mock, body, "wrong"),
1632+
Whatsapp.post(
1633+
valid_message_mock,
1634+
body,
1635+
"sha256=wrong"
1636+
),
16331637
threw(401)
16341638
);
16351639
});

0 commit comments

Comments
 (0)