From 2175a0fa662bf509342abd9e7c41a76cf448ca9b Mon Sep 17 00:00:00 2001 From: Shakker Date: Fri, 8 May 2026 10:49:04 +0100 Subject: [PATCH] test: assert crestodian rescue audit entry --- src/crestodian/rescue-channel.live.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crestodian/rescue-channel.live.test.ts b/src/crestodian/rescue-channel.live.test.ts index b81ec4e0c20..b0a10b9f665 100644 --- a/src/crestodian/rescue-channel.live.test.ts +++ b/src/crestodian/rescue-channel.live.test.ts @@ -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"')]), ); }); });