mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
wip
This commit is contained in:
parent
b9ab8ee78e
commit
ba6036dd7d
18 changed files with 105 additions and 740 deletions
|
@ -7,7 +7,7 @@ beforeEach(() => {
|
|||
fs.mkdirSync('tests/__data__/output')
|
||||
|
||||
execSync(
|
||||
'DB_DIR=tests/__data__/output/database node scripts/commands/create-database.js --channels=tests/__data__/input/site.channels.xml --max-clusters=1',
|
||||
'DB_DIR=tests/__data__/output/database node scripts/commands/create-database.js --channels=tests/__data__/input/*.channels.xml --max-clusters=1',
|
||||
{ encoding: 'utf8' }
|
||||
)
|
||||
})
|
||||
|
@ -16,13 +16,13 @@ it('can create channels database', () => {
|
|||
const output = content('tests/__data__/output/database/channels.db')
|
||||
|
||||
expect(output).toMatchObject({
|
||||
lang: 'ca',
|
||||
xmltv_id: 'AndorraTV.ad',
|
||||
site_id: 'atv',
|
||||
name: 'Andorra TV',
|
||||
site: 'andorradifusio.ad',
|
||||
channelsPath: 'tests/__data__/input/site.channels.xml',
|
||||
configPath: 'tests/__data__/input/andorradifusio.ad.config.js',
|
||||
lang: 'ru',
|
||||
xmltv_id: 'CNNInternationalEurope.us',
|
||||
site_id: '140',
|
||||
name: 'CNN International Europe',
|
||||
site: 'example.com',
|
||||
channelsPath: 'tests/__data__/input/example.com.channels.xml',
|
||||
configPath: 'tests/__data__/input/example.com.config.js',
|
||||
cluster_id: 1
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue