mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 04:19:27 -07:00
fix: narrow setup window test types
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user