From 9f5c9b2e2233390d5d9bf3716b9f1a92d3084fdf Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 18 Jun 2026 18:00:38 +0800 Subject: [PATCH] refactor(test): remove unused proof and channel helpers --- scripts/github/real-behavior-proof-policy.mjs | 4 --- src/test-utils/channel-plugins.ts | 36 ------------------- 2 files changed, 40 deletions(-) diff --git a/scripts/github/real-behavior-proof-policy.mjs b/scripts/github/real-behavior-proof-policy.mjs index 91d49628a11a..14436d70bec9 100644 --- a/scripts/github/real-behavior-proof-policy.mjs +++ b/scripts/github/real-behavior-proof-policy.mjs @@ -267,10 +267,6 @@ export function extractRealBehaviorProofSections(body = "") { return extractMarkdownSections(/^#{2,6}\s+real behavior proof\b[^\n]*$/im, body); } -export function extractRealBehaviorProofSection(body = "") { - return extractRealBehaviorProofSections(body)[0] ?? ""; -} - function extractOutOfScopeFollowUpsSection(body = "") { return extractMarkdownSection(/^#{2,6}\s+out-of-scope follow-ups\b[^\n]*$/im, body); } diff --git a/src/test-utils/channel-plugins.ts b/src/test-utils/channel-plugins.ts index 6cf04b6cbf7a..1eca17323f88 100644 --- a/src/test-utils/channel-plugins.ts +++ b/src/test-utils/channel-plugins.ts @@ -97,42 +97,6 @@ export const createDirectOutboundTestAdapter = (params: { sendMedia: async () => ({ channel: params.channel, messageId: params.messageId ?? "msg-test" }), }); -export const createMSTeamsTestPluginBase = (): Pick< - ChannelPlugin, - "id" | "meta" | "capabilities" | "config" -> => { - const base = createChannelTestPluginBase({ - id: "msteams", - label: "Microsoft Teams", - docsPath: "/channels/msteams", - config: { listAccountIds: () => [], resolveAccount: () => ({}) }, - }); - return { - ...base, - meta: { - ...base.meta, - selectionLabel: "Microsoft Teams (Bot Framework)", - blurb: "Teams SDK; enterprise support.", - aliases: ["teams"], - }, - }; -}; - -export const createMSTeamsTestPlugin = (params?: { - aliases?: string[]; - outbound?: ChannelOutboundAdapter; -}): ChannelPlugin => { - const base = createMSTeamsTestPluginBase(); - return { - ...base, - meta: { - ...base.meta, - ...(params?.aliases ? { aliases: params.aliases } : {}), - }, - ...(params?.outbound ? { outbound: params.outbound } : {}), - }; -}; - export const createOutboundTestPlugin = (params: { id: ChannelId; outbound: ChannelOutboundAdapter;