Filling out other required args for FetchLike invocation

This commit is contained in:
Jerome 2025-06-14 18:43:28 +01:00
commit ba7b35cbf3
No known key found for this signature in database

View file

@ -327,7 +327,16 @@ describe("useConnection", () => {
// Verify the fetch function includes the proxy auth header
const mockFetch = mockSSETransport.options?.eventSourceInit?.fetch;
const testUrl = "http://test.com";
await mockFetch?.(testUrl);
await mockFetch?.(testUrl, {
headers: {
"Accept": "text/event-stream",
},
cache: "no-store",
mode: "cors",
signal: new AbortController().signal,
redirect: "follow",
credentials: "include",
});
expect(global.fetch).toHaveBeenCalledTimes(2);
expect(