From 5f96aab719d7116eeadd0aeefd635f68ae86d5d6 Mon Sep 17 00:00:00 2001 From: Hiago Silva <97215740+Huntterxx@users.noreply.github.com> Date: Mon, 16 Mar 2026 09:49:15 -0300 Subject: [PATCH] test: cover channel arg bypass scenario --- src/agents/tools/tts-tool.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agents/tools/tts-tool.test.ts b/src/agents/tools/tts-tool.test.ts index ec50fed03d8..32418b7a5fa 100644 --- a/src/agents/tools/tts-tool.test.ts +++ b/src/agents/tools/tts-tool.test.ts @@ -13,11 +13,11 @@ describe("createTtsTool", () => { expect(tool.description).not.toContain("NO_REPLY"); }); - it("returns error when no delivery channel is available", async () => { + it("returns error even when channel arg is provided but no agentChannel", async () => { const tool = createTtsTool(); - const result = await tool.execute("test-call", { text: "hello world" }); + const result = await tool.execute("test-call", { text: "hello world", channel: "telegram" }); const firstContent = result.content[0] as { type: string; text: string }; - expect(firstContent.text).toContain("requires a bound channel"); + expect(firstContent.text).toContain("requires a bound"); expect((result.details as Record).error).toBe("no_channel"); }); });