From d6b67265f88439aa29222a44933dcb4a4c7e4991 Mon Sep 17 00:00:00 2001 From: Calum Murray Date: Mon, 22 Jul 2024 12:43:59 -0400 Subject: [PATCH] fix(test): test expects not to throw Signed-off-by: Calum Murray --- test/integration/cloud_event_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/cloud_event_test.ts b/test/integration/cloud_event_test.ts index f45a6f6..8447207 100644 --- a/test/integration/cloud_event_test.ts +++ b/test/integration/cloud_event_test.ts @@ -82,10 +82,10 @@ describe("A CloudEvent", () => { }).throw("invalid extension name"); }); - it("Throw a validation error for invalid extension names, more than 20 chars", () => { + it("Not throw a validation error for invalid extension names, more than 20 chars", () => { expect(() => { new CloudEvent({ "123456789012345678901": "extension1", ...fixture }); - }).throw("invalid extension name"); + }).not.throw("invalid extension name"); }); it("Throws a validation error for invalid uppercase extension names", () => {