correct valid url to be corresponding to the new standards

This commit is contained in:
theofficialomega
2026-02-20 14:28:30 +01:00
parent b278f97655
commit a9fcd6c0c7

View File

@@ -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', () => {