mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update create-database.test.js
This commit is contained in:
parent
fea3aca787
commit
6568f77761
1 changed files with 28 additions and 26 deletions
|
@ -15,8 +15,9 @@ beforeEach(() => {
|
||||||
it('can create channels database', () => {
|
it('can create channels database', () => {
|
||||||
const output = content('tests/__data__/output/database/channels.db')
|
const output = content('tests/__data__/output/database/channels.db')
|
||||||
|
|
||||||
expect(output).toMatchObject([
|
expect(output).toEqual(
|
||||||
{
|
expect.arrayContaining([
|
||||||
|
expect.objectContaining({
|
||||||
lang: 'ru',
|
lang: 'ru',
|
||||||
country: 'US',
|
country: 'US',
|
||||||
xmltv_id: 'CNNInternationalEurope.us',
|
xmltv_id: 'CNNInternationalEurope.us',
|
||||||
|
@ -27,8 +28,8 @@ it('can create channels database', () => {
|
||||||
configPath: 'tests/__data__/input/sites/example.com.config.js',
|
configPath: 'tests/__data__/input/sites/example.com.config.js',
|
||||||
groups: ['ca-nl/example.com'],
|
groups: ['ca-nl/example.com'],
|
||||||
cluster_id: 1
|
cluster_id: 1
|
||||||
},
|
}),
|
||||||
{
|
expect.objectContaining({
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
xmltv_id: 'CNNInternationalEurope2.us',
|
xmltv_id: 'CNNInternationalEurope2.us',
|
||||||
site_id: '141',
|
site_id: '141',
|
||||||
|
@ -39,8 +40,9 @@ it('can create channels database', () => {
|
||||||
configPath: 'tests/__data__/input/sites/example.com.config.js',
|
configPath: 'tests/__data__/input/sites/example.com.config.js',
|
||||||
groups: ['ca-nl/example.com'],
|
groups: ['ca-nl/example.com'],
|
||||||
cluster_id: 1
|
cluster_id: 1
|
||||||
}
|
})
|
||||||
])
|
])
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
function content(filepath) {
|
function content(filepath) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue