fix: narrow setup window test types

This commit is contained in:
2026-03-28 15:25:52 -07:00
parent 572bceecb0
commit fa2da16d37

View File

@@ -16,7 +16,7 @@ test('createCreateFirstRunSetupWindowHandler builds first-run setup window', ()
});
assert.deepEqual(createSetupWindow(), { id: 'first-run' });
const { resizable, minimizable, maximizable, ...firstRunWindowOptions } = options ?? {};
const { resizable, minimizable, maximizable, ...firstRunWindowOptions } = options!;
assert.deepEqual(firstRunWindowOptions, {
width: 480,
height: 460,
@@ -48,7 +48,7 @@ test('createCreateJellyfinSetupWindowHandler builds jellyfin setup window', () =
minimizable: jellyfinMinimizable,
maximizable: jellyfinMaximizable,
...jellyfinWindowOptions
} = options ?? {};
} = options!;
assert.deepEqual(jellyfinWindowOptions, {
width: 520,
height: 560,
@@ -80,7 +80,7 @@ test('createCreateAnilistSetupWindowHandler builds anilist setup window', () =>
minimizable: anilistMinimizable,
maximizable: anilistMaximizable,
...anilistWindowOptions
} = options ?? {};
} = options!;
assert.deepEqual(anilistWindowOptions, {
width: 1000,
height: 760,