Tests: satisfy exactOptionalPropertyTypes in the Joystick stub
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f6baadec0c
commit
9b3d44f56a
1 changed files with 1 additions and 1 deletions
|
|
@ -1374,7 +1374,7 @@ describe("Heimdall service", () => {
|
|||
});
|
||||
|
||||
function stubJoystick(identity: Record<string, unknown>) {
|
||||
const calls: Array<{ url: string; headers: Record<string, string>; body?: URLSearchParams }> = [];
|
||||
const calls: Array<{ url: string; headers: Record<string, string>; body?: URLSearchParams | undefined }> = [];
|
||||
globalThis.fetch = (async (input: string | URL, init?: RequestInit) => {
|
||||
const url = String(input);
|
||||
calls.push({ url, headers: (init?.headers ?? {}) as Record<string, string>, body: init?.body as URLSearchParams | undefined });
|
||||
|
|
|
|||
Loading…
Reference in a new issue