test: guard agent harness mock calls · openclaw/openclaw@96288dd
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,7 +65,7 @@ describe("resolveCopilotApiToken", () => {
|
65 | 65 | }); |
66 | 66 | |
67 | 67 | expect(fetchImpl).toHaveBeenCalledTimes(1); |
68 | | -const [url, init] = fetchImpl.mock.calls[0] as unknown as [string, RequestInit]; |
| 68 | +const [url, init] = fetchImpl.mock.calls.at(0) as unknown as [string, RequestInit]; |
69 | 69 | expect(url).toBe("https://api.github.com/copilot_internal/v2/token"); |
70 | 70 | expect(init.method).toBe("GET"); |
71 | 71 | expect(init.headers).toEqual({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。