mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update tests
This commit is contained in:
@@ -12,10 +12,9 @@ beforeEach(() => {
|
||||
|
||||
describe('channels:parse', () => {
|
||||
it('can parse channels', () => {
|
||||
execSync(
|
||||
'npm run channels:parse -- --config=tests/__data__/input/channels-parse/channels-parse.config.js --output=tests/__data__/output/channels.xml',
|
||||
{ encoding: 'utf8' }
|
||||
)
|
||||
const cmd =
|
||||
'npm run channels:parse -- --config=tests/__data__/input/channels-parse/channels-parse.config.js --output=tests/__data__/output/channels.xml'
|
||||
execSync(cmd, { encoding: 'utf8' })
|
||||
|
||||
expect(content('tests/__data__/output/channels.xml')).toEqual(
|
||||
content('tests/__data__/expected/sites/channels-parse/channels-parse.channels.xml')
|
||||
@@ -23,10 +22,9 @@ describe('channels:parse', () => {
|
||||
})
|
||||
|
||||
it('can parse channels with clean flag', () => {
|
||||
execSync(
|
||||
'npm run channels:parse -- --config=tests/__data__/input/channels-parse/channels-parse.config.js --output=tests/__data__/output/channels.xml --clean',
|
||||
{ encoding: 'utf8' }
|
||||
)
|
||||
const cmd =
|
||||
'npm run channels:parse -- --config=tests/__data__/input/channels-parse/channels-parse.config.js --output=tests/__data__/output/channels.xml --clean'
|
||||
execSync(cmd, { encoding: 'utf8' })
|
||||
|
||||
expect(content('tests/__data__/output/channels.xml')).toEqual(
|
||||
content('tests/__data__/expected/sites/channels-parse/channels-parse-clean.channels.xml')
|
||||
|
||||
Reference in New Issue
Block a user