diff --git a/src/app/player/components/channel-list-container/channel-list-container.component.spec.ts b/src/app/player/components/channel-list-container/channel-list-container.component.spec.ts index 083218a79..2dff7a36f 100644 --- a/src/app/player/components/channel-list-container/channel-list-container.component.spec.ts +++ b/src/app/player/components/channel-list-container/channel-list-container.component.spec.ts @@ -99,12 +99,14 @@ describe('ChannelListContainerComponent', () => { component.groupedChannels[ MOCKED_PLAYLIST.playlist.items[0].group.title ][0] - ).toEqual({ - id: MOCKED_PLAYLIST.playlist.items[0].url, - name: MOCKED_PLAYLIST.playlist.items[0].name, - group: MOCKED_PLAYLIST.playlist.items[0].group, - url: MOCKED_PLAYLIST.playlist.items[0].url, - }); + ).toEqual( + expect.objectContaining({ + id: MOCKED_PLAYLIST.playlist.items[0].url, + name: MOCKED_PLAYLIST.playlist.items[0].name, + group: MOCKED_PLAYLIST.playlist.items[0].group, + url: MOCKED_PLAYLIST.playlist.items[0].url, + }) + ); // check second group expect( @@ -116,12 +118,14 @@ describe('ChannelListContainerComponent', () => { component.groupedChannels[ MOCKED_PLAYLIST.playlist.items[2].group.title ][0] - ).toEqual({ - id: MOCKED_PLAYLIST.playlist.items[2].url, - name: MOCKED_PLAYLIST.playlist.items[2].name, - group: MOCKED_PLAYLIST.playlist.items[2].group, - url: MOCKED_PLAYLIST.playlist.items[2].url, - }); + ).toEqual( + expect.objectContaining({ + id: MOCKED_PLAYLIST.playlist.items[2].url, + name: MOCKED_PLAYLIST.playlist.items[2].name, + group: MOCKED_PLAYLIST.playlist.items[2].group, + url: MOCKED_PLAYLIST.playlist.items[2].url, + }) + ); }); it('should set favorites list', () => { diff --git a/src/app/player/components/epg-list/epg-list.component.ts b/src/app/player/components/epg-list/epg-list.component.ts index 994ad7e23..30b88ff5b 100644 --- a/src/app/player/components/epg-list/epg-list.component.ts +++ b/src/app/player/components/epg-list/epg-list.component.ts @@ -4,7 +4,7 @@ import { EpgProgram } from '../../models/epg-program.model'; import * as moment from 'moment'; import { ElectronService } from '../../../services/electron.service'; import { EPG_GET_PROGRAM_DONE } from '../../../shared/ipc-commands'; -import { ChannelStore } from 'app/state'; +import { ChannelStore } from '../../../state'; interface EpgData { channel: EpgChannel; diff --git a/src/app/state/channel.store.ts b/src/app/state/channel.store.ts index e25ba6aa7..bf5814fe5 100644 --- a/src/app/state/channel.store.ts +++ b/src/app/state/channel.store.ts @@ -4,7 +4,7 @@ import { EPG_GET_PROGRAM } from '../shared/ipc-commands'; import { ElectronService } from '../services/electron.service'; import { Channel } from './channel.model'; import * as moment from 'moment'; -import { EpgProgram } from 'app/player/models/epg-program.model'; +import { EpgProgram } from '../player/models/epg-program.model'; export interface ChannelState extends EntityState { active: Channel; diff --git a/src/mocks/playlist.json b/src/mocks/playlist.json index e0034e1e3..c03301b62 100644 --- a/src/mocks/playlist.json +++ b/src/mocks/playlist.json @@ -18,7 +18,8 @@ "language": "", "country": "", "logo": "", - "url": "" + "url": "", + "rec": "" }, "group": { "title": "news\r" @@ -38,7 +39,8 @@ "language": "", "country": "", "logo": "", - "url": "" + "url": "", + "rec": "" }, "group": { "title": "news\r" @@ -58,7 +60,8 @@ "language": "", "country": "", "logo": "", - "url": "" + "url": "", + "rec": "" }, "group": { "title": "category 2\r" @@ -78,7 +81,8 @@ "language": "", "country": "", "logo": "", - "url": "" + "url": "", + "rec": "" }, "group": { "title": "category 2\r"