test: splice matrix notice bodies

This commit is contained in:
Shakker
2026-05-12 21:25:33 +01:00
parent 1b645b21fc
commit 4cfbfc73e0
@@ -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> {