mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -05:00
Added test cases
This commit is contained in:
@@ -12,3 +12,8 @@ const channel = { site_id: '0', xmltv_id: 'moji.id', lang: 'en', logo: 'https://
|
|||||||
it('can generate valid url', () => {
|
it('can generate valid url', () => {
|
||||||
expect(url({ channel, date })).toBe('https://moji.id/schedule')
|
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