UNPKG

epg-grabber

Version:

Node.js CLI tool for grabbing EPG from different sites

28 lines (25 loc) 569 B
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', url: 'https://example.com', logo: 'https://example.com/logos/1TV.png', lcn: 36, index: 2 }) expect(channel).toMatchObject({ name: '1 TV', xmltv_id: '1TV.com', site_id: '1', site: 'example.com', url: 'https://example.com', lang: 'fr', icon: 'https://example.com/logos/1TV.png', lcn: 36, index: 2 }) })