mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 16:19:25 -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' });
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user