mirror of
https://github.com/iptv-org/epg
synced 2026-03-21 19:30:52 -04:00
correct valid url to be corresponding to the new standards
This commit is contained in:
@@ -11,11 +11,11 @@ dayjs.extend(customParseFormat)
|
||||
dayjs.extend(timezone)
|
||||
|
||||
const date = dayjs.utc('2025-01-03', 'YYYY-MM-DD').startOf('day')
|
||||
const channel = { site_id: 'stod2', xmltv_id: 'Stod2.is' }
|
||||
const channel = { site_id: 'syn', xmltv_id: 'Syn.is' }
|
||||
|
||||
it('can generate valid url', () => {
|
||||
const generatedUrl = url({ date, channel })
|
||||
expect(generatedUrl).toBe('https://www.syn.is/api/epg/stod2/2025-01-03')
|
||||
expect(generatedUrl).toBe('https://www.syn.is/api/epg/syn/2025-01-03')
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
|
||||
Reference in New Issue
Block a user