test(telegram): pass outbound sanitizer payload · openclaw/openclaw@242fbf1
mushuiyu886
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -36,14 +36,14 @@ describe("telegramPlugin outbound", () => {
|
36 | 36 | clearTelegramRuntime(); |
37 | 37 | const text = 'Done.\n⚠️ 🛠️ `search "Pipeline" in ~/.openclaw/workspace-* (agent)` failed'; |
38 | 38 | |
39 | | -expect(telegramOutbound.sanitizeText?.({ text })).toBe("Done."); |
| 39 | +expect(telegramOutbound.sanitizeText?.({ text, payload: { text } })).toBe("Done."); |
40 | 40 | }); |
41 | 41 | |
42 | 42 | it("preserves ordinary outbound text while sanitizing", () => { |
43 | 43 | clearTelegramRuntime(); |
44 | 44 | const text = "The pipeline has 3 deals."; |
45 | 45 | |
46 | | -expect(telegramOutbound.sanitizeText?.({ text })).toBe(text); |
| 46 | +expect(telegramOutbound.sanitizeText?.({ text, payload: { text } })).toBe(text); |
47 | 47 | }); |
48 | 48 | |
49 | 49 | it("preserves explicit HTML parse mode before chunking", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。