mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-02 08:33:24 +00:00
test(web): cast fetch mock call args for tsc
This commit is contained in:
parent
335b3f5be2
commit
c0ad22e3a7
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ describe("unused SPA API client", () => {
|
|||
"/api/health",
|
||||
expect.objectContaining({ credentials: "include" }),
|
||||
);
|
||||
const init = fetchMock.mock.calls[0]?.[1] as unknown as RequestInit;
|
||||
const init = (fetchMock.mock.calls[0] as unknown as [string, RequestInit])[1];
|
||||
expect(init.credentials).toBe("include");
|
||||
const headers = new Headers(init.headers);
|
||||
expect(headers.get("Authorization")).toBeNull();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue