test: dedupe canvas tool mock read · openclaw/openclaw@383ebe7
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
Commit 383ebe7
test: dedupe canvas tool mock read
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,7 +83,7 @@ describe("Canvas tool", () => {
|
83 | 83 | await tool.execute("tool-call-1", { action: "snapshot" }); |
84 | 84 | |
85 | 85 | expect(mocks.imageResultFromFile).toHaveBeenCalledTimes(1); |
86 | | -const imageResultParams = mocks.imageResultFromFile.mock.calls.at(0)?.[0] as |
| 86 | +const imageResultParams = mocks.imageResultFromFile.mock.calls[0]?.[0] as |
87 | 87 | | { |
88 | 88 | label?: string; |
89 | 89 | path?: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
0 commit comments
Comments
(0)