mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update mts.rs.test.js
This commit is contained in:
parent
8faff519b2
commit
bbbb109586
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ it('can get logo url', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can parse response', () => {
|
it('can parse response', () => {
|
||||||
const result = parser({ date, channel, content })
|
const result = parser({ date, channel, content }).map(p => {
|
||||||
|
p.start = p.start.toJSON()
|
||||||
|
p.stop = p.stop.toJSON()
|
||||||
|
return p
|
||||||
|
})
|
||||||
expect(result).toMatchObject([
|
expect(result).toMatchObject([
|
||||||
{
|
{
|
||||||
start: '2021-11-06T22:44:00.000Z',
|
start: '2021-11-06T22:44:00.000Z',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue