From 209ca50cb9723ccb62dddeea30bc217f8f2884d4 Mon Sep 17 00:00:00 2001 From: Hiago Silva <97215740+Huntterxx@users.noreply.github.com> Date: Mon, 16 Mar 2026 08:59:09 -0300 Subject: [PATCH] fix: type assertions in tts-tool test --- src/agents/tools/tts-tool.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agents/tools/tts-tool.test.ts b/src/agents/tools/tts-tool.test.ts index 93b0083bcf6..ec50fed03d8 100644 --- a/src/agents/tools/tts-tool.test.ts +++ b/src/agents/tools/tts-tool.test.ts @@ -16,7 +16,8 @@ describe("createTtsTool", () => { it("returns error when no delivery channel is available", async () => { const tool = createTtsTool(); const result = await tool.execute("test-call", { text: "hello world" }); - expect(result.content[0].text).toContain("requires a bound channel"); - expect(result.details.error).toBe("no_channel"); + const firstContent = result.content[0] as { type: string; text: string }; + expect(firstContent.text).toContain("requires a bound channel"); + expect((result.details as Record).error).toBe("no_channel"); }); });