mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-24 08:19:49 +00:00
test: secret gateway warning text
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user