mirror of
https://github.com/iptv-org/database.git
synced 2025-05-10 03:30:01 -04:00
Update tests
This commit is contained in:
parent
f1a5eec298
commit
adc7c71c0d
2 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,7 @@ it('can update db with data from issues', () => {
|
||||||
expect(content('output/data/channels.csv')).toEqual(content('expected/data/channels.csv'))
|
expect(content('output/data/channels.csv')).toEqual(content('expected/data/channels.csv'))
|
||||||
expect(content('output/data/feeds.csv')).toEqual(content('expected/data/feeds.csv'))
|
expect(content('output/data/feeds.csv')).toEqual(content('expected/data/feeds.csv'))
|
||||||
expect(stdout).toEqual(
|
expect(stdout).toEqual(
|
||||||
'OUTPUT=closes #6871, closes #5871, closes #7901, closes #5901, closes #5701, closes #8900, closes #5900, closes #5899, closes #5898, closes #5897, closes #5891'
|
'OUTPUT=closes #6871, closes #5871, closes #7901, closes #5901, closes #5902, closes #5903, closes #5701, closes #8900, closes #5900, closes #5899, closes #5898, closes #5897, closes #5891'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -75,14 +75,13 @@ describe('db:validate', () => {
|
||||||
'entry with the channel "002RadioTV.do" and is_main "true" already exists'
|
'entry with the channel "002RadioTV.do" and is_main "true" already exists'
|
||||||
)
|
)
|
||||||
expect((error as ExecError).stdout).toContain('"0TV.dk" is missing in the channels.csv')
|
expect((error as ExecError).stdout).toContain('"0TV.dk" is missing in the channels.csv')
|
||||||
expect((error as ExecError).stdout).toContain('"SD" has an invalid replaced_by "M5.hu@HD"')
|
|
||||||
expect((error as ExecError).stdout).toContain(
|
expect((error as ExecError).stdout).toContain(
|
||||||
'"0TV.dk@SD" has the wrong timezone "Europe/Copenhagen"'
|
'"0TV.dk@SD" has the wrong timezone "Europe/Copenhagen"'
|
||||||
)
|
)
|
||||||
expect((error as ExecError).stdout).toContain(
|
expect((error as ExecError).stdout).toContain(
|
||||||
'SD: "video_format" with value "576I" fails to match the required pattern'
|
'SD: "video_format" with value "576I" fails to match the required pattern'
|
||||||
)
|
)
|
||||||
expect((error as ExecError).stdout).toContain('10 error(s)')
|
expect((error as ExecError).stdout).toContain('9 error(s)')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue