mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update meo.pt.test.js
This commit is contained in:
parent
77a7eb2b50
commit
a916411635
1 changed files with 4 additions and 4 deletions
|
@ -44,14 +44,14 @@ it('can generate valid request method', () => {
|
|||
it('can parse response', () => {
|
||||
const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.json'))
|
||||
let results = parser({ content }).map(p => {
|
||||
p.start = p.start.toISO()
|
||||
p.stop = p.stop.toISO()
|
||||
p.start = p.start.toJSON()
|
||||
p.stop = p.stop.toJSON()
|
||||
return p
|
||||
})
|
||||
|
||||
expect(results[0]).toMatchObject({
|
||||
start: '2022-12-01T23:35:00.000+00:00',
|
||||
stop: '2022-12-02T00:17:00.000+00:00',
|
||||
start: '2022-12-01T23:35:00.000Z',
|
||||
stop: '2022-12-02T00:17:00.000Z',
|
||||
title: 'Walker, O Ranger Do Texas T6 - Ep. 14'
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue