Update load-cluster.js

This commit is contained in:
Aleksandr Statciuk 2022-01-16 15:12:38 +03:00
parent 5ab469205c
commit c034f001e8
2 changed files with 17 additions and 28 deletions

View file

@ -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) {