diff --git a/test/sign.test.ts b/test/sign.test.ts index 0d17686..21d9869 100644 --- a/test/sign.test.ts +++ b/test/sign.test.ts @@ -47,9 +47,9 @@ describe("sign", () => { }); }); - it("throws with eventPayload as object", () => { + it("throws with eventPayload as object", async () => { // @ts-expect-error - expect(() => sign(secret, eventPayload)).rejects.toThrow( + await expect(() => sign(secret, eventPayload)).rejects.toThrow( "[@octokit/webhooks-methods] payload must be a string", ); });