mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update ipko.com.test.js
This commit is contained in:
parent
e735901732
commit
6178cf1bf5
1 changed files with 7 additions and 8 deletions
|
@ -8,7 +8,11 @@ dayjs.extend(customParseFormat)
|
|||
dayjs.extend(utc)
|
||||
|
||||
const date = dayjs.utc('2021-10-24', 'YYYY-MM-DD').startOf('d')
|
||||
const channel = { site_id: '406', xmltv_id: 'RTK1.rs' }
|
||||
const channel = {
|
||||
site_id: '406',
|
||||
xmltv_id: 'RTK1.rs',
|
||||
logo: 'https://www.ipko.com/epg/logo/stinet.png'
|
||||
}
|
||||
const content = `{"element":{"1":[{"id":6367,"channel_id":406,"program_name":"Beautiful People 13","name_short":"","description":"Lin largohet nga Nju Meksiko për t'u vendosur në Nju Jork e për t'ia nisur nga fillimi: një punë të re, shtëpi të re dhe njohje të reja. Bashkë me të janë vajzat e saj, Sofia, një 16 vjeçare që shkëlqen në shkollë, dhe Kareni, 20 vjeçare, që do të bë","category":"Sezoni I","duration":150,"day":"Sun","left_distanc":165,"date":"00:55:00"}]}}`
|
||||
|
||||
it('can generate valid url', () => {
|
||||
|
@ -16,13 +20,8 @@ it('can generate valid url', () => {
|
|||
expect(result).toBe('https://www.ipko.com/epg/admin/programs.php?date=2021-10-24')
|
||||
})
|
||||
|
||||
it('can get logo url', done => {
|
||||
logo({ channel })
|
||||
.then(result => {
|
||||
expect(result).toBe('https://www.ipko.com/epg/logo/stinet.png')
|
||||
done()
|
||||
})
|
||||
.catch(error => done(error))
|
||||
it('can get logo url', () => {
|
||||
expect(logo({ channel })).toBe('https://www.ipko.com/epg/logo/stinet.png')
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue