mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update parse.test.ts
This commit is contained in:
parent
d466a071e5
commit
23e2f4dbf5
1 changed files with 0 additions and 10 deletions
|
@ -20,16 +20,6 @@ describe('channels:parse', () => {
|
||||||
content('tests/__data__/expected/sites/channels-parse/channels-parse.channels.xml')
|
content('tests/__data__/expected/sites/channels-parse/channels-parse.channels.xml')
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can parse channels with clean flag', () => {
|
|
||||||
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')
|
|
||||||
)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
function content(filepath: string) {
|
function content(filepath: string) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue