Update tests

This commit is contained in:
freearhey 2023-09-18 18:24:13 +03:00
parent 67631acd64
commit e8d0b26ce0
2 changed files with 13 additions and 10 deletions

View file

@ -9,7 +9,7 @@ beforeEach(() => {
it('can format playlists', () => {
const stdout = execSync(
'DEBUG=true DATA_DIR=tests/__data__/input/data STREAMS_DIR=tests/__data__/output/streams npm run playlist:update --silent',
'DATA_DIR=tests/__data__/input/data STREAMS_DIR=tests/__data__/output/streams npm run playlist:update --silent',
{
encoding: 'utf8'
}

View file

@ -10,14 +10,17 @@ it('can create report', () => {
expect(
stdout.includes(`
(index) issueNumber channelId status
0 14179 'ManoramaNews.in' 'pending'
1 14178 'TV3.my' 'blocked'
2 14177 'TUTV.us' 'fullfilled'
3 14176 'ManoramaNews.in' 'duplicate'
4 14175 'TFX.fr' 'invalid_id'
`)
(index) issueNumber type channelId status
0 14110 'streams:edit' 'BBCAmericaEast.us' 'invalid_link'
1 14120 'streams:edit' 'boo.us' 'invalid_id'
2 14140 'broken stream' undefined 'invalid_link'
3 14175 'streams:add' 'TFX.fr' 'invalid_id'
4 14176 'streams:add' 'ManoramaNews.in' 'duplicate'
5 14177 'streams:add' 'TUTV.us' 'fullfilled'
6 14178 'streams:add' 'TV3.my' 'blocked'
7 14179 'streams:add' 'ManoramaNews.in' 'pending'
`)
).toBe(true)
})