diff --git a/src/infra/outbound/message-action-normalization.test.ts b/src/infra/outbound/message-action-normalization.test.ts index 27f66423fdd..ef2f8c3ca76 100644 --- a/src/infra/outbound/message-action-normalization.test.ts +++ b/src/infra/outbound/message-action-normalization.test.ts @@ -1,6 +1,23 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it, vi } from "vitest"; import { normalizeMessageActionInput } from "./message-action-normalization.js"; +vi.mock("../../channels/plugins/bootstrap-registry.js", () => ({ + getBootstrapChannelPlugin: (channel: string) => + channel === "feishu" + ? { + actions: { + messageActionTargetAliases: { + read: { aliases: ["messageId"] }, + pin: { aliases: ["messageId"] }, + unpin: { aliases: ["messageId"] }, + "list-pins": { aliases: ["chatId"] }, + "channel-info": { aliases: ["chatId"] }, + }, + }, + } + : undefined, +})); + describe("normalizeMessageActionInput", () => { type NormalizeMessageActionInputCase = { input: Parameters[0];