diff --git a/extensions/telegram/src/format.wrap-md.test.ts b/extensions/telegram/src/format.wrap-md.test.ts index 8c5083312ee..b3196312c11 100644 --- a/extensions/telegram/src/format.wrap-md.test.ts +++ b/extensions/telegram/src/format.wrap-md.test.ts @@ -170,9 +170,12 @@ describe("markdownToTelegramHtml - file reference wrapping", () => { describe("markdownToTelegramChunks - file reference wrapping", () => { it("wraps file references in chunked output", () => { const chunks = markdownToTelegramChunks("Check README.md and backup.sh", 4096); - expect(chunks.length).toBeGreaterThan(0); - expect(chunks[0].html).toContain("README.md"); - expect(chunks[0].html).toContain("backup.sh"); + expect(chunks).toStrictEqual([ + { + html: "Check README.md and backup.sh", + text: "Check README.md and backup.sh", + }, + ]); }); it("keeps rendered html chunks within the provided limit", () => {