test: dedupe qa credential lease mock read · openclaw/openclaw@7de4c47
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/qa-lab/src/live-transports/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ function jsonResponse(payload: unknown, status = 200) {
|
14 | 14 | type FetchMock = { mock: { calls: Parameters<typeof fetch>[] } }; |
15 | 15 | |
16 | 16 | function fetchCall(fetchImpl: FetchMock, index = 0): Parameters<typeof fetch> { |
17 | | -const call = fetchImpl.mock.calls.at(index); |
| 17 | +const call = fetchImpl.mock.calls[index]; |
18 | 18 | if (!call) { |
19 | 19 | throw new Error(`expected fetch call ${index}`); |
20 | 20 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。