test: assert channel allowlist warnings

This commit is contained in:
Shakker
2026-05-11 13:08:41 +01:00
parent 4bfdb6ef30
commit f7d68cf435

View File

@@ -85,12 +85,12 @@ describe("createDangerousNameMatchingMutableAllowlistWarningCollector", () => {
},
} as never,
}),
).toEqual(
expect.arrayContaining([
expect.stringContaining("mutable allowlist entry"),
expect.stringContaining("channels.irc.allowFrom: charlie"),
]),
);
).toEqual([
"- Found 1 mutable allowlist entry across irc while name matching is disabled by default.",
"- channels.irc.allowFrom: charlie",
"- Option A (break-glass): enable channels.irc.dangerouslyAllowNameMatching=true to keep name/email/nick matching.",
"- Option B (recommended): resolve names/emails/nicks to stable sender IDs and rewrite the allowlist entries.",
]);
});
it("skips scopes that explicitly allow dangerous name matching", () => {