fix(test): test expects not to throw
Signed-off-by: Calum Murray <cmurray@redhat.com>
This commit is contained in:
parent
590e38ac66
commit
d6b67265f8
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in New Issue