fix(test): test expects not to throw

Signed-off-by: Calum Murray <cmurray@redhat.com>
This commit is contained in:
Calum Murray 2024-07-22 12:43:59 -04:00
parent 590e38ac66
commit d6b67265f8
No known key found for this signature in database
GPG Key ID: D9837BD1D90C1512
1 changed files with 2 additions and 2 deletions

View File

@ -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", () => {