test: add a test for extension names with all caps. (#389)
See: https://github.com/cloudevents/sdk-javascript/issues/380 Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
parent
b006b90122
commit
e7d99eb882
|
|
@ -61,6 +61,12 @@ describe("A CloudEvent", () => {
|
|||
new CloudEvent({ "123456789012345678901": "extension1", ...fixture });
|
||||
}).throw("invalid extension name");
|
||||
});
|
||||
|
||||
it("Throws a validation error for invalid uppercase extension names", () => {
|
||||
expect(() => {
|
||||
new CloudEvent({ ExtensionWithCaps: "extension value", ...fixture });
|
||||
}).throw("invalid extension name");
|
||||
});
|
||||
});
|
||||
|
||||
describe("A 1.0 CloudEvent", () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue