test: guard tui spawn mock call · openclaw/openclaw@a8216a4
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ function createChildProcess(): ChildProcess {
|
24 | 24 | |
25 | 25 | function expectSpawned(expectedArgs: string[]): SpawnOptions { |
26 | 26 | expect(spawnMock).toHaveBeenCalledOnce(); |
27 | | -const call = spawnMock.mock.calls[0] as [string, string[], SpawnOptions] | undefined; |
| 27 | +const call = spawnMock.mock.calls.at(0) as [string, string[], SpawnOptions] | undefined; |
28 | 28 | if (!call) { |
29 | 29 | throw new Error("missing spawn call"); |
30 | 30 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。