diff --git a/extensions/feishu/src/setup-surface.test.ts b/extensions/feishu/src/setup-surface.test.ts index bb84467b5f7..8933c055395 100644 --- a/extensions/feishu/src/setup-surface.test.ts +++ b/extensions/feishu/src/setup-surface.test.ts @@ -88,7 +88,7 @@ describe("feishu setup wizard", () => { probeFeishuMock.mockResolvedValue({ ok: false, error: "mocked" }); }); - it("does not throw when config appId/appSecret are SecretRef objects", async () => { + it("prompts over SecretRef appId/appSecret config objects", async () => { const text = vi .fn() .mockResolvedValueOnce("cli_from_prompt") diff --git a/extensions/slack/src/format.test.ts b/extensions/slack/src/format.test.ts index 7d0b3c392b4..bf8ec3517b3 100644 --- a/extensions/slack/src/format.test.ts +++ b/extensions/slack/src/format.test.ts @@ -62,7 +62,7 @@ describe("markdownToSlackMrkdwn", () => { ); }); - it("does not throw when input is undefined at runtime", () => { + it("returns empty text when input is undefined at runtime", () => { expect(markdownToSlackMrkdwn(undefined as unknown as string)).toBe(""); }); diff --git a/extensions/telegram/src/format.wrap-md.test.ts b/extensions/telegram/src/format.wrap-md.test.ts index 324c1ccdc22..a9bcd6240c0 100644 --- a/extensions/telegram/src/format.wrap-md.test.ts +++ b/extensions/telegram/src/format.wrap-md.test.ts @@ -236,7 +236,6 @@ describe("markdownToTelegramChunks - file reference wrapping", () => { it("gracefully returns the original chunk when tag overhead exceeds the limit", () => { const input = "**ab**"; - expect(() => markdownToTelegramChunks(input, 6)).not.toThrow(); const chunks = markdownToTelegramChunks(input, 6); expect(chunks).toHaveLength(1); expect(chunks[0]?.text).toBe("ab"); diff --git a/extensions/zalo/src/monitor.webhook.test.ts b/extensions/zalo/src/monitor.webhook.test.ts index 4b76cf08027..58a1edfe897 100644 --- a/extensions/zalo/src/monitor.webhook.test.ts +++ b/extensions/zalo/src/monitor.webhook.test.ts @@ -426,7 +426,7 @@ describe("handleZaloWebhookRequest", () => { } }); - it("does not throw when replay metadata is partially missing", async () => { + it("accepts replay metadata when optional fields are missing", async () => { const sink = vi.fn(); const unregister = registerTarget({ path: "/hook-replay-partial", statusSink: sink }); const payload = {