test: dedupe container target mock read · openclaw/openclaw@5ca5c59
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ function requireSpawnCall(
|
9 | 9 | spawnSync: ReturnType<typeof vi.fn>, |
10 | 10 | index: number, |
11 | 11 | ): [string, string[], unknown?] { |
12 | | -const call = spawnSync.mock.calls.at(index); |
| 12 | +const call = spawnSync.mock.calls[index]; |
13 | 13 | if (!call) { |
14 | 14 | throw new Error(`Expected spawnSync call ${index}`); |
15 | 15 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。