test: dedupe acp startup mock reads · openclaw/openclaw@ac7b406
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -166,11 +166,11 @@ describe("serveAcpGateway startup", () => {
|
166 | 166 | } |
167 | 167 | |
168 | 168 | function getGatewayBootstrapParams(): { env?: unknown; gatewayUrl?: unknown } { |
169 | | -const firstCall = mockState.resolveGatewayClientBootstrap.mock.calls.at(0); |
| 169 | +const firstCall = mockState.resolveGatewayClientBootstrap.mock.calls[0]; |
170 | 170 | if (!firstCall) { |
171 | 171 | throw new Error("Expected gateway bootstrap resolution call"); |
172 | 172 | } |
173 | | -const params = firstCall.at(0); |
| 173 | +const params = firstCall[0]; |
174 | 174 | if (!params || typeof params !== "object") { |
175 | 175 | throw new Error("Expected gateway bootstrap params"); |
176 | 176 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。