test: dedupe marketplace command mock read · openclaw/openclaw@e898ea6
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -194,7 +194,7 @@ function expectMarketplaceInstallSuccess(
|
194 | 194 | |
195 | 195 | function expectRemoteCloneCommand() { |
196 | 196 | expect(runCommandWithTimeoutMock).toHaveBeenCalledTimes(1); |
197 | | -const [argv, options] = runCommandWithTimeoutMock.mock.calls.at(0) ?? []; |
| 197 | +const [argv, options] = runCommandWithTimeoutMock.mock.calls[0] ?? []; |
198 | 198 | expect(Array.isArray(argv)).toBe(true); |
199 | 199 | expect((argv as unknown[]).slice(0, 5)).toEqual([ |
200 | 200 | "git", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。