mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:00:44 +00:00
test: assert acp stream logging contracts
This commit is contained in:
@@ -374,7 +374,7 @@ describe("agentCommand ACP runtime routing", () => {
|
||||
{ text: "bo", delta: "bo" },
|
||||
{ text: "book", delta: "ok" },
|
||||
]);
|
||||
expect(repeated.logLines.some((line) => line.includes("book"))).toBe(true);
|
||||
expect(repeated.logLines).toEqual(expect.arrayContaining([expect.stringContaining("book")]));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -383,7 +383,7 @@ describe("agentCommand ACP runtime routing", () => {
|
||||
const { assistantEvents, logLines } = await runAcpTurnWithAssistantEvents(["NO_REPLY"]);
|
||||
|
||||
expect(assistantEvents.map((event) => event.text).filter(Boolean)).toEqual([]);
|
||||
expect(logLines.some((line) => line.includes("NO_REPLY"))).toBe(false);
|
||||
expect(logLines).not.toEqual(expect.arrayContaining([expect.stringContaining("NO_REPLY")]));
|
||||
expect(logLines).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user