@vellumai/credential-executor 0.10.12-dev.202607271736.e69cfe3 → 0.10.12-dev.202607271934.80199f1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,8 +18,16 @@ describe("isChannelId", () => {
|
|
|
18
18
|
expect(isChannelId("vellum")).toBe(true);
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
+
test("includes discord", () => {
|
|
22
|
+
// Discord is canonical vocabulary ahead of its ingress implementation:
|
|
23
|
+
// the gateway's inbound list and the admission-policy seed both derive
|
|
24
|
+
// from CHANNEL_IDS, so it must be here for a Discord message to be
|
|
25
|
+
// routable and to carry an admission floor at all.
|
|
26
|
+
expect(isChannelId("discord")).toBe(true);
|
|
27
|
+
});
|
|
28
|
+
|
|
21
29
|
test("rejects unknown strings and non-string values", () => {
|
|
22
|
-
expect(isChannelId("
|
|
30
|
+
expect(isChannelId("mastodon")).toBe(false);
|
|
23
31
|
expect(isChannelId("")).toBe(false);
|
|
24
32
|
expect(isChannelId(undefined)).toBe(false);
|
|
25
33
|
expect(isChannelId(null)).toBe(false);
|