test: dedupe acp stop reason mock reads · openclaw/openclaw@bc6fd1f
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,11 +22,11 @@ function requireValue<T>(value: T | undefined, label: string): T {
|
22 | 22 | function requireFirstRequestIdempotencyKey(requestMock: { |
23 | 23 | mock: { calls: ReadonlyArray<ReadonlyArray<unknown>> }; |
24 | 24 | }): string { |
25 | | -const firstCall = requestMock.mock.calls.at(0); |
| 25 | +const firstCall = requestMock.mock.calls[0]; |
26 | 26 | if (!firstCall) { |
27 | 27 | throw new Error("expected request mock call"); |
28 | 28 | } |
29 | | -const params = firstCall.at(1); |
| 29 | +const params = firstCall[1]; |
30 | 30 | if (!params || typeof params !== "object") { |
31 | 31 | throw new Error("expected request params"); |
32 | 32 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。