Skip to content

Commit e84eb59

Browse files
committed
test: tighten context pruning placeholder assertion
1 parent 3925370 commit e84eb59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agents/pi-hooks/context-pruning/pruner.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ describe("pruneContextMessages", () => {
390390

391391
const toolResult = result[1] as Extract<AgentMessage, { role: "toolResult" }>;
392392
expect(toolResult.content).toHaveLength(1);
393-
expect(toolResult.content[0]).toMatchObject({ type: "text" });
393+
expect(toolResult.content[0]?.type).toBe("text");
394394
const textBlock = toolResult.content[0] as { type: "text"; text: string };
395395
expect(textBlock.text).toContain("[image removed during context pruning]");
396396
expect(textBlock.text).toContain(

0 commit comments

Comments
 (0)