address claude comments

This commit is contained in:
2026-03-01 16:13:00 -08:00
parent 8f47e0f7f2
commit 879ffe571d
4 changed files with 35 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ import {
readUtf8FileAppendedSince,
parseEpisodePathFromDisplay,
buildRootSearchGroups,
classifyJellyfinChildSelection,
} from './jellyfin.js';
type RunResult = {
@@ -443,3 +444,11 @@ test('buildRootSearchGroups excludes episodes and keeps containers/movies', () =
},
]);
});
test('classifyJellyfinChildSelection keeps container drilldown state instead of flattening', () => {
const next = classifyJellyfinChildSelection({ id: 'season-2', type: 'Season' });
assert.deepEqual(next, {
kind: 'container',
id: 'season-2',
});
});