epg-grabber/tests/Channel.test.js

23 lines
483 B
JavaScript
Raw Normal View History

2022-06-16 14:07:56 +02:00
import Channel from '../src/Channel'
it('can create new Channel', () => {
const channel = new Channel({
name: '1 TV',
xmltv_id: '1TV.com',
site_id: '1',
site: 'example.com',
lang: 'fr',
logo: 'https://example.com/logos/1TV.png'
})
expect(channel).toMatchObject({
name: '1 TV',
2023-05-11 23:18:58 +02:00
xmltv_id: '1TV.com',
2022-06-16 18:11:11 +02:00
site_id: '1',
site: 'example.com',
url: 'https://example.com',
lang: 'fr',
logo: 'https://example.com/logos/1TV.png'
})
})