mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update update-api.test.js
This commit is contained in:
parent
79a927adfe
commit
1ea4557859
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ beforeEach(() => {
|
||||||
'tests/__data__/temp/database/programs.db'
|
'tests/__data__/temp/database/programs.db'
|
||||||
)
|
)
|
||||||
|
|
||||||
execSync(
|
const stdout = execSync(
|
||||||
'DB_DIR=tests/__data__/temp/database API_DIR=tests/__data__/output/api node scripts/commands/update-api.js',
|
'DB_DIR=tests/__data__/temp/database API_DIR=tests/__data__/output/api node scripts/commands/update-api.js',
|
||||||
{ encoding: 'utf8' }
|
{ encoding: 'utf8' }
|
||||||
)
|
)
|
||||||
|
@ -25,9 +25,9 @@ afterEach(() => {
|
||||||
fs.rmdirSync('tests/__data__/temp', { recursive: true })
|
fs.rmdirSync('tests/__data__/temp', { recursive: true })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can generate channels.json', () => {
|
it('can generate guides.json', () => {
|
||||||
const output = content('tests/__data__/output/api/channels.json')
|
const output = content('tests/__data__/output/api/guides.json')
|
||||||
const expected = content('tests/__data__/expected/api/channels.json')
|
const expected = content('tests/__data__/expected/api/guides.json')
|
||||||
|
|
||||||
expect(output).toBe(expected)
|
expect(output).toBe(expected)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue