mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Added test cases
This commit is contained in:
parent
55ace2bfe4
commit
51359b0e21
1 changed files with 5 additions and 0 deletions
|
@ -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([])
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue