test: secret gateway warning text

This commit is contained in:
Shakker
2026-05-12 21:55:49 +01:00
parent f3b5dc80f9
commit bf9fd2cfcd

View File

@@ -64,7 +64,7 @@ function expectRespondError(
}
function expectWarnMessageWith(warn: ReturnType<typeof vi.fn>, text: string): void {
expect(warn.mock.calls.some(([message]) => String(message).includes(text))).toBe(true);
expect(warn.mock.calls.map(([message]) => String(message)).join("\n")).toContain(text);
}
describe("secrets handlers", () => {