mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 16:00:43 +00:00
test: clarify context pruning image assertion
This commit is contained in:
@@ -405,7 +405,7 @@ describe("context-pruning", () => {
|
||||
});
|
||||
|
||||
const tool = findToolResult(next, "t1");
|
||||
expect(tool.content.some((b) => b.type === "image")).toBe(false);
|
||||
expect(tool.content.filter((block) => block.type === "image")).toEqual([]);
|
||||
expect(toolText(tool)).toContain("[image removed during context pruning]");
|
||||
expect(toolText(tool)).toContain("visible tool text");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user