mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
test: splice matrix notice bodies
This commit is contained in:
@@ -26,11 +26,11 @@ function getSentNoticeBodies(sendMessage: ReturnType<typeof vi.fn>): string[] {
|
||||
}
|
||||
|
||||
function expectBodiesContain(bodies: string[], text: string) {
|
||||
expect(bodies.some((body) => body.includes(text))).toBe(true);
|
||||
expect(bodies.join("\n")).toContain(text);
|
||||
}
|
||||
|
||||
function expectBodiesExclude(bodies: string[], text: string) {
|
||||
expect(bodies.some((body) => body.includes(text))).toBe(false);
|
||||
expect(bodies.join("\n")).not.toContain(text);
|
||||
}
|
||||
|
||||
function requireRecord(value: unknown, label: string): Record<string, unknown> {
|
||||
|
||||
Reference in New Issue
Block a user