fix(runtime): address consolidated review feedback

This commit is contained in:
4gray committed 2026-05-22 14:02:56 +03:00
1 parent 582422c512
commit ed8680116c
17 files changed
+293 -35

No files matched your search

@@ -195,7 +195,9 @@ describe('ChannelListContainerComponent', () => {
it('does not enable EPG rows when runtime EPG support is unavailable', () => {
runtimeCapabilities.supportsEpg = false;
storageGet.mockReturnValue(of({ epgUrl: ['https://example.com/epg.xml'] }));
storageGet.mockReturnValue(
of({ epgUrl: ['https://example.com/epg.xml'] })
);
fixture.detectChanges();
@@ -203,6 +205,18 @@ describe('ChannelListContainerComponent', () => {
expect(storageGet).not.toHaveBeenCalled();
});
it('enables EPG rows when runtime EPG support and an EPG URL are available', () => {
runtimeCapabilities.supportsEpg = true;
storageGet.mockReturnValue(
of({ epgUrl: ['https://example.com/epg.xml'] })
);
fixture.detectChanges();
expect(storageGet).toHaveBeenCalled();
expect(fixture.componentInstance.shouldShowEpg()).toBe(true);
});
it('dispatches playlist meta updates when hidden group titles change', () => {
fixture.componentInstance.onHiddenGroupTitlesChanged([
'Movies',