mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update save-results.js
This commit is contained in:
parent
d2e43e46fe
commit
1b63609b7d
4 changed files with 11 additions and 29 deletions
|
@ -36,22 +36,9 @@ it('can save programs to database', () => {
|
|||
|
||||
it('can update queue', () => {
|
||||
const output = content('tests/__data__/output/database/queue.db')
|
||||
const expected = content('tests/__data__/expected/database/queue-with-errors.db')
|
||||
|
||||
expect(output[1]).toMatchObject({
|
||||
_id: '0Wefq0oMR3feCcuY',
|
||||
programCount: 23
|
||||
})
|
||||
})
|
||||
|
||||
it('can save errors', () => {
|
||||
const output = content('tests/__data__/input/logs/errors.log')
|
||||
|
||||
expect(output[0]).toMatchObject({
|
||||
_id: '00AluKCrCnfgrl8W',
|
||||
site: 'directv.com',
|
||||
xmltv_id: 'BravoEast.us',
|
||||
error: 'Invalid header value char'
|
||||
})
|
||||
expect(output).toEqual(expected)
|
||||
})
|
||||
|
||||
function content(filepath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue