test: specify telegram file-ref chunks · openclaw/openclaw@cb98814
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -170,9 +170,12 @@ describe("markdownToTelegramHtml - file reference wrapping", () => {
|
170 | 170 | describe("markdownToTelegramChunks - file reference wrapping", () => { |
171 | 171 | it("wraps file references in chunked output", () => { |
172 | 172 | const chunks = markdownToTelegramChunks("Check README.md and backup.sh", 4096); |
173 | | -expect(chunks.length).toBeGreaterThan(0); |
174 | | -expect(chunks[0].html).toContain("<code>README.md</code>"); |
175 | | -expect(chunks[0].html).toContain("<code>backup.sh</code>"); |
| 173 | +expect(chunks).toStrictEqual([ |
| 174 | +{ |
| 175 | +html: "Check <code>README.md</code> and <code>backup.sh</code>", |
| 176 | +text: "Check README.md and backup.sh", |
| 177 | +}, |
| 178 | +]); |
176 | 179 | }); |
177 | 180 | |
178 | 181 | it("keeps rendered html chunks within the provided limit", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。