test: guard nodes basic mock calls · openclaw/openclaw@a978f0f
openclaw
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -140,7 +140,7 @@ describe("cli program (nodes basics)", () => {
|
140 | 140 | |
141 | 141 | expectGatewayRequest("node.pair.list", {}); |
142 | 142 | expectGatewayRequest("node.list", {}); |
143 | | -const json = runtime.writeJson.mock.calls[0]?.[0] as { |
| 143 | +const json = runtime.writeJson.mock.calls.at(0)?.[0] as { |
144 | 144 | pending?: unknown[]; |
145 | 145 | paired?: Array<Record<string, unknown>>; |
146 | 146 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。