Update mts.rs.test.js

This commit is contained in:
Aleksandr Statciuk 2021-11-21 22:49:07 +03:00
parent 8faff519b2
commit bbbb109586

View file

@ -31,7 +31,11 @@ it('can get logo url', () => {
})
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([
{
start: '2021-11-06T22:44:00.000Z',