test: dedupe canvas tool mock read

This commit is contained in:
Peter Steinberger
2026-05-13 09:56:50 +01:00
parent 5bb2c5e454
commit 383ebe723b

View File

@@ -83,7 +83,7 @@ describe("Canvas tool", () => {
await tool.execute("tool-call-1", { action: "snapshot" });
expect(mocks.imageResultFromFile).toHaveBeenCalledTimes(1);
const imageResultParams = mocks.imageResultFromFile.mock.calls.at(0)?.[0] as
const imageResultParams = mocks.imageResultFromFile.mock.calls[0]?.[0] as
| {
label?: string;
path?: string;