mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 03:30:41 +00:00
test: tighten context pruning placeholder assertion
This commit is contained in:
@@ -390,7 +390,7 @@ describe("pruneContextMessages", () => {
|
||||
|
||||
const toolResult = result[1] as Extract<AgentMessage, { role: "toolResult" }>;
|
||||
expect(toolResult.content).toHaveLength(1);
|
||||
expect(toolResult.content[0]).toMatchObject({ type: "text" });
|
||||
expect(toolResult.content[0]?.type).toBe("text");
|
||||
const textBlock = toolResult.content[0] as { type: "text"; text: string };
|
||||
expect(textBlock.text).toContain("[image removed during context pruning]");
|
||||
expect(textBlock.text).toContain(
|
||||
|
||||
Reference in New Issue
Block a user