test: guard proxy cli mock calls · openclaw/openclaw@abb4f96
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -366,7 +366,7 @@ describe("proxy cli runtime", () => {
|
366 | 366 | |
367 | 367 | await runProxyValidateCommand({}); |
368 | 368 | |
369 | | -const output = String(vi.mocked(process.stdout.write).mock.calls[0]?.[0] ?? ""); |
| 369 | +const output = String(vi.mocked(process.stdout.write).mock.calls.at(0)?.[0] ?? ""); |
370 | 370 | expect(output).toContain("<success>Proxy validation passed</success>"); |
371 | 371 | expect(output).toContain("<heading>Checks</heading>"); |
372 | 372 | expect(output).toContain("<success>✓</success>"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。