test: clarify context pruning image assertion

This commit is contained in:
Peter Steinberger
2026-05-08 10:02:01 +01:00
parent 3bae07cb75
commit 033c02bbf6

View File

@@ -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");
});