mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 06:20:42 +00:00
test: assert crestodian rescue audit entry
This commit is contained in:
@@ -101,8 +101,8 @@ describeLive("Crestodian live rescue channel smoke", () => {
|
||||
expect(config.agents?.defaults?.model).toMatchObject({ primary: "openai/gpt-5.5" });
|
||||
const auditPath = path.join(tempDir, "audit", "crestodian.jsonl");
|
||||
const auditLines = (await fs.readFile(auditPath, "utf8")).trim().split("\n");
|
||||
expect(auditLines.some((line) => line.includes('"operation":"config.setDefaultModel"'))).toBe(
|
||||
true,
|
||||
expect(auditLines).toEqual(
|
||||
expect.arrayContaining([expect.stringContaining('"operation":"config.setDefaultModel"')]),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user