mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 03:16:53 -05:00
Update update-api.test.js
This commit is contained in:
@@ -15,7 +15,7 @@ beforeEach(() => {
|
||||
'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',
|
||||
{ encoding: 'utf8' }
|
||||
)
|
||||
@@ -25,9 +25,9 @@ afterEach(() => {
|
||||
fs.rmdirSync('tests/__data__/temp', { recursive: true })
|
||||
})
|
||||
|
||||
it('can generate channels.json', () => {
|
||||
const output = content('tests/__data__/output/api/channels.json')
|
||||
const expected = content('tests/__data__/expected/api/channels.json')
|
||||
it('can generate guides.json', () => {
|
||||
const output = content('tests/__data__/output/api/guides.json')
|
||||
const expected = content('tests/__data__/expected/api/guides.json')
|
||||
|
||||
expect(output).toBe(expected)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user