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