diff --git a/src/plugin-sdk/channel-policy.test.ts b/src/plugin-sdk/channel-policy.test.ts index 64311e28bd0..682326d9786 100644 --- a/src/plugin-sdk/channel-policy.test.ts +++ b/src/plugin-sdk/channel-policy.test.ts @@ -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", () => {