mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -05:00
Update raiplay.it.test.js
This commit is contained in:
@@ -14,9 +14,7 @@ const channel = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
it('can generate valid url', () => {
|
it('can generate valid url', () => {
|
||||||
expect(url({ channel, date })).toBe(
|
expect(url({ channel, date })).toBe('https://www.raiplay.it/palinsesto/app/rai-2/03-05-2022.json')
|
||||||
'https://www.raiplay.it/palinsesto/app/rai-2/03-05-2022.json'
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can parse response', () => {
|
it('can parse response', () => {
|
||||||
@@ -27,14 +25,14 @@ it('can parse response', () => {
|
|||||||
|
|
||||||
expect(result).toMatchObject([
|
expect(result).toMatchObject([
|
||||||
{
|
{
|
||||||
start: '2022-05-03T17:40:00.000Z',
|
start: '2022-05-03T18:40:00.000Z',
|
||||||
stop: '2022-05-03T18:30:00.000Z',
|
stop: '2022-05-03T19:30:00.000Z',
|
||||||
title: 'The Good Doctor S3E5 - La prima volta',
|
title: 'The Good Doctor S3E5 - La prima volta',
|
||||||
description:
|
description:
|
||||||
"Shaun affronta il suo primo intervento. Il caso si rivela complicato e, nonostante Shaun abbia un'idea geniale, sarà Andrews a portare a termine l'operazione.",
|
"Shaun affronta il suo primo intervento. Il caso si rivela complicato e, nonostante Shaun abbia un'idea geniale, sarà Andrews a portare a termine l'operazione.",
|
||||||
season: "3",
|
season: '3',
|
||||||
episode: "5",
|
episode: '5',
|
||||||
sub_title: "La prima volta",
|
sub_title: 'La prima volta',
|
||||||
icon: 'https://www.raiplay.it/dl/img/2020/03/09/1583748471860_dddddd.jpg',
|
icon: 'https://www.raiplay.it/dl/img/2020/03/09/1583748471860_dddddd.jpg',
|
||||||
url: 'https://www.raiplay.it/dirette/rai2/The-Good-Doctor-S3E5---La-prima-volta-2f81030d-803b-456a-9ea5-40233234fd9d.html'
|
url: 'https://www.raiplay.it/dirette/rai2/The-Good-Doctor-S3E5---La-prima-volta-2f81030d-803b-456a-9ea5-40233234fd9d.html'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user