test(m3u): type empty hidden-group arrays in the route session spec

The CI spec typecheck (apps/web/tsconfig.spec.json) rejected `[]` inferred
as never[] inside the PlaylistMeta and Playlist casts with TS2352.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
4grayandClaude Opus 5.5 committed 2026-10-12 09:56:18 +02:00
1 parent 9feff291de
commit 99e0fede8a
1 file changed
+2 -2
@@ -257,7 +257,7 @@ describe('M3uWorkspaceRouteSession', () => {
PlaylistActions.updatePlaylistMeta({
playlist: {
_id: PLAYLIST_ID,
hiddenGroupTitles: [],
hiddenGroupTitles: [] as string[],
} as PlaylistMeta,
persist: false,
})
@@ -280,7 +280,7 @@ describe('M3uWorkspaceRouteSession', () => {
} as PlaylistMeta,
});
response.next({
hiddenGroupTitles: [],
hiddenGroupTitles: [] as string[],
playlist: { items: [PRIMARY_CHANNEL] },
} as Playlist);
response.complete();