mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Added test cases
This commit is contained in:
@@ -11,4 +11,9 @@ const channel = { site_id: '0', xmltv_id: 'moji.id', lang: 'en', logo: 'https://
|
||||
|
||||
it('can generate valid url', () => {
|
||||
expect(url({ channel, date })).toBe('https://moji.id/schedule')
|
||||
})
|
||||
|
||||
it('can handle empty guide', () => {
|
||||
const results = parser({ content: '' })
|
||||
expect(results).toMatchObject([])
|
||||
})
|
||||
Reference in New Issue
Block a user