feat(config): add configuration window (#70)

This commit is contained in:
2026-05-21 04:16:21 -07:00
committed by GitHub
parent a54f03f0cd
commit dc52bc2fba
287 changed files with 14507 additions and 8134 deletions
@@ -2,6 +2,7 @@ import assert from 'node:assert/strict';
import test from 'node:test';
import {
shouldEnsureTrayOnStartupForInitialArgs,
shouldQuitOnMpvShutdownForTrayState,
shouldQuitOnWindowAllClosedForTrayState,
} from './startup-tray-policy';
@@ -42,3 +43,36 @@ test('window-all-closed keeps background app alive without tray', () => {
false,
);
});
test('mpv shutdown quits managed background playback despite tray residency', () => {
assert.equal(
shouldQuitOnMpvShutdownForTrayState({
managedPlayback: true,
backgroundMode: true,
hasTray: true,
}),
true,
);
});
test('mpv shutdown quits standalone managed playback without tray residency', () => {
assert.equal(
shouldQuitOnMpvShutdownForTrayState({
managedPlayback: true,
backgroundMode: false,
hasTray: false,
}),
true,
);
});
test('mpv shutdown keeps unmanaged background tray app alive', () => {
assert.equal(
shouldQuitOnMpvShutdownForTrayState({
managedPlayback: false,
backgroundMode: true,
hasTray: true,
}),
false,
);
});