Fix Jellyfin Login (#76)

This commit is contained in:
2026-05-20 00:46:11 -07:00
committed by GitHub
parent 799cce6991
commit a54f03f0cd
31 changed files with 1087 additions and 148 deletions
@@ -56,6 +56,23 @@ test('createCreateJellyfinSetupWindowHandler builds jellyfin setup window', () =
});
});
test('createCreateJellyfinSetupWindowHandler wires optional preload bridge', () => {
const captured: { options?: Electron.BrowserWindowConstructorOptions } = {};
const createSetupWindow = createCreateJellyfinSetupWindowHandler({
createBrowserWindow: (nextOptions) => {
captured.options = nextOptions;
return { id: 'jellyfin' } as never;
},
preloadPath: 'C:\\SubMiner\\dist\\preload-jellyfin-setup.js',
});
assert.deepEqual(createSetupWindow(), { id: 'jellyfin' });
const options = captured.options;
assert.ok(options);
assert.equal(options.webPreferences?.preload, 'C:\\SubMiner\\dist\\preload-jellyfin-setup.js');
assert.equal(options.webPreferences?.sandbox, true);
});
test('createCreateAnilistSetupWindowHandler builds anilist setup window', () => {
let options: Electron.BrowserWindowConstructorOptions | null = null;
const createSetupWindow = createCreateAnilistSetupWindowHandler({