Skip to content

Commit ff462d3

Browse files
committed
style(plugins): fix type cast in result-path test assertion
1 parent 9efb4ae commit ff462d3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/agents/plugin-text-transforms.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ describe("plugin text transforms", () => {
254254

255255
// stream.result() tool-call blocks must also be transformed (#97761).
256256
const result = await stream.result();
257-
const toolCallBlock = (result.content as Array<Record<string, unknown>> | undefined)?.find(
258-
(b) => b?.type === "toolCall",
259-
);
257+
const toolCallBlock = (
258+
result.content as unknown as Array<Record<string, unknown>> | undefined
259+
)?.find((b) => b?.type === "toolCall");
260260
expect(toolCallBlock?.arguments).toEqual({ text: "John" });
261261
});
262262
});

0 commit comments

Comments
 (0)