mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update load-cluster.js
This commit is contained in:
parent
5ab469205c
commit
c034f001e8
2 changed files with 17 additions and 28 deletions
|
@ -24,6 +24,7 @@ it('can load cluster', () => {
|
|||
expect(output[0]).toMatchObject({
|
||||
_id: '0Wefq0oMR3feCcuY',
|
||||
site: 'chaines-tv.orange.fr',
|
||||
logo: 'https://example.com/logo.png',
|
||||
country: 'US',
|
||||
gid: 'fr'
|
||||
})
|
||||
|
@ -31,21 +32,10 @@ it('can load cluster', () => {
|
|||
expect(output[1]).toMatchObject({
|
||||
_id: '1XzrxNkSF2AQNBrT',
|
||||
site: 'magticom.ge',
|
||||
logo: 'https://www.magticom.ge/images/channels/MjAxOC8wOS8xMC9lZmJhNWU5Yy0yMmNiLTRkMTAtOWY5Ny01ODM0MzY0ZTg0MmEuanBn.jpg',
|
||||
country: 'US',
|
||||
gid: 'ge'
|
||||
})
|
||||
|
||||
const database = content('tests/__data__/temp/database/channels.db')
|
||||
|
||||
expect(database[1]).toMatchObject({
|
||||
_id: '0Wefq0oMR3feCcuY',
|
||||
logo: 'https://example.com/logo.png'
|
||||
})
|
||||
|
||||
expect(database[2]).toMatchObject({
|
||||
_id: '1XzrxNkSF2AQNBrT',
|
||||
logo: 'https://www.magticom.ge/images/channels/MjAxOC8wOS8xMC9lZmJhNWU5Yy0yMmNiLTRkMTAtOWY5Ny01ODM0MzY0ZTg0MmEuanBn.jpg'
|
||||
})
|
||||
})
|
||||
|
||||
function content(filepath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue