test: splice matrix notice bodies · openclaw/openclaw@4cfbfc7
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/matrix/src/matrix/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -26,11 +26,11 @@ function getSentNoticeBodies(sendMessage: ReturnType<typeof vi.fn>): string[] {
|
26 | 26 | } |
27 | 27 | |
28 | 28 | function expectBodiesContain(bodies: string[], text: string) { |
29 | | -expect(bodies.some((body) => body.includes(text))).toBe(true); |
| 29 | +expect(bodies.join("\n")).toContain(text); |
30 | 30 | } |
31 | 31 | |
32 | 32 | function expectBodiesExclude(bodies: string[], text: string) { |
33 | | -expect(bodies.some((body) => body.includes(text))).toBe(false); |
| 33 | +expect(bodies.join("\n")).not.toContain(text); |
34 | 34 | } |
35 | 35 | |
36 | 36 | function requireRecord(value: unknown, label: string): Record<string, unknown> { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。