mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 05:36:17 -08:00
fix(runtime): address consolidated review feedback
This commit is contained in:
1 parent
582422c512
commit
ed8680116c
17 files changed
+293
-35
No files matched your search
+15
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user