Update i24news.tv.test.js

This commit is contained in:
Ismaël Moret 2024-12-19 15:53:07 +01:00 committed by GitHub
parent ed3ede914c
commit 38ab58d03a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,12 +7,12 @@ dayjs.extend(utc)
const date = dayjs.utc('2022-03-06', 'YYYY-MM-DD').startOf('d')
const channel = {
site_id: 'ar#',
site_id: 'ar',
xmltv_id: 'I24NewsArabic.il'
}
it('can generate valid url', () => {
expect(url({ channel })).toBe('https://api.i24news.tv/v2/ar/schedules/world')
expect(url({ channel })).toBe('https://api.i24news.tv/v2/ar/schedules')
})
it('can parse response', () => {