test: dedupe google image fetch mock read · openclaw/openclaw@dd127ba
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -52,7 +52,7 @@ function fetchRequest(fetchMock: ReturnType<typeof vi.fn>): {
|
52 | 52 | method?: string; |
53 | 53 | url: string; |
54 | 54 | } { |
55 | | -const [url, init] = fetchMock.mock.calls.at(0) as [string, RequestInit | undefined]; |
| 55 | +const [url, init] = fetchMock.mock.calls[0] as [string, RequestInit | undefined]; |
56 | 56 | expect(typeof url).toBe("string"); |
57 | 57 | if (!init) { |
58 | 58 | throw new Error("Expected fetch init"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。