8000 test: add a test for extension names with all caps. (#389) · aarne/sdk-javascript@e7d99eb · GitHub
[go: up one dir, main page]

Skip to content

Commit e7d99eb

Browse files
authored
test: add a test for extension names with all caps. (cloudevents#389)
See: cloudevents#380 Signed-off-by: Lance Ball <lball@redhat.com>
1 parent b006b90 commit e7d99eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/integration/cloud_event_test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ describe("A CloudEvent", () => {
6161
new CloudEvent({ "123456789012345678901": "extension1", ...fixture });
6262
}).throw("invalid extension name");
6363
});
64+
65+
it("Throws a validation error for invalid uppercase extension names", () => {
66+
expect(() => {
67+
new CloudEvent({ ExtensionWithCaps: "extension value", ...fixture });
68+
}).throw("invalid extension name");
69+
});
6470
});
6571

6672
describe("A 1.0 CloudEvent", () => {

0 commit comments

Comments
 (0)
0