From d0b0ca9fcfa19fe6b21473cf77c4d183bb057943 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 09:15:18 +0000 Subject: [PATCH] test: remove low-value open-policy slash channel case --- src/slack/monitor/slash.test.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/slack/monitor/slash.test.ts b/src/slack/monitor/slash.test.ts index 91bb0ccbe5a..8bda4095d29 100644 --- a/src/slack/monitor/slash.test.ts +++ b/src/slack/monitor/slash.test.ts @@ -335,25 +335,6 @@ describe("slack slash commands channel policy", () => { resetPolicyHarness(harness); }); - it("allows unlisted channels when groupPolicy is open", async () => { - harness.ctx.groupPolicy = "open"; - harness.ctx.channelsConfig = { C_LISTED: { requireMention: true } }; - harness.ctx.resolveChannelName = async () => ({ name: "unlisted", type: "channel" }); - - const { respond } = await runSlashHandler({ - commands: harness.commands, - command: { - channel_id: "C_UNLISTED", - channel_name: "unlisted", - }, - }); - - expect(dispatchMock).toHaveBeenCalledTimes(1); - expect(respond).not.toHaveBeenCalledWith( - expect.objectContaining({ text: "This channel is not allowed." }), - ); - }); - it("blocks explicitly denied channels when groupPolicy is open", async () => { harness.ctx.groupPolicy = "open"; harness.ctx.channelsConfig = { C_DENIED: { allow: false } };