test: dedupe gradium tts fetch mock read · openclaw/openclaw@4cf6971
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -119,7 +119,7 @@ describe("gradium tts diagnostics", () => {
|
119 | 119 | }); |
120 | 120 | |
121 | 121 | expect(fetchMock).toHaveBeenCalledOnce(); |
122 | | -const [url, init] = fetchMock.mock.calls.at(0) as [string, RequestInit]; |
| 122 | +const [url, init] = fetchMock.mock.calls[0] as [string, RequestInit]; |
123 | 123 | expect(url).toBe("https://api.gradium.ai/api/post/speech/tts"); |
124 | 124 | expect(init.method).toBe("POST"); |
125 | 125 | const headers = new Headers(init.headers); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。