From cef02df9d5551fcc1b99ff461fb9be711fd02839 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 09:19:55 +0000 Subject: [PATCH] test: remove redundant explicit-deny slash policy case --- src/slack/monitor/slash.test.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/slack/monitor/slash.test.ts b/src/slack/monitor/slash.test.ts index 48aa9a9e335..c5c98cd69c6 100644 --- a/src/slack/monitor/slash.test.ts +++ b/src/slack/monitor/slash.test.ts @@ -318,26 +318,6 @@ describe("slack slash commands channel policy", () => { resetPolicyHarness(harness); }); - it("blocks explicitly denied channels when groupPolicy is open", async () => { - harness.ctx.groupPolicy = "open"; - harness.ctx.channelsConfig = { C_DENIED: { allow: false } }; - harness.ctx.resolveChannelName = async () => ({ name: "denied", type: "channel" }); - - const { respond } = await runSlashHandler({ - commands: harness.commands, - command: { - channel_id: "C_DENIED", - channel_name: "denied", - }, - }); - - expect(dispatchMock).not.toHaveBeenCalled(); - expect(respond).toHaveBeenCalledWith({ - text: "This channel is not allowed.", - response_type: "ephemeral", - }); - }); - it("blocks unlisted channels when groupPolicy is allowlist", async () => { harness.ctx.groupPolicy = "allowlist"; harness.ctx.channelsConfig = { C_LISTED: { requireMention: true } };