test: dedupe gradium tts fetch mock read

This commit is contained in:
Peter Steinberger
2026-05-13 07:15:45 +01:00
parent dd127ba0ba
commit 4cf6971130

View File

@@ -119,7 +119,7 @@ describe("gradium tts diagnostics", () => {
});
expect(fetchMock).toHaveBeenCalledOnce();
const [url, init] = fetchMock.mock.calls.at(0) as [string, RequestInit];
const [url, init] = fetchMock.mock.calls[0] as [string, RequestInit];
expect(url).toBe("https://api.gradium.ai/api/post/speech/tts");
expect(init.method).toBe("POST");
const headers = new Headers(init.headers);