mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update cyta.com.cy.test.js
This commit is contained in:
parent
1e126da5d5
commit
adda13bfd6
1 changed files with 6 additions and 5 deletions
|
@ -13,8 +13,9 @@ const channel = {
|
||||||
|
|
||||||
it('can generate valid url', () => {
|
it('can generate valid url', () => {
|
||||||
const generatedUrl = url({ date, channel })
|
const generatedUrl = url({ date, channel })
|
||||||
console.log('Generated URL:', generatedUrl)
|
expect(generatedUrl).toBe(
|
||||||
expect(generatedUrl).toBe('https://epg.cyta.com.cy/api/mediacatalog/fetchEpg?startTimeEpoch=1735862400000&endTimeEpoch=1735948800000&language=1&channelIds=561066')
|
'https://epg.cyta.com.cy/api/mediacatalog/fetchEpg?startTimeEpoch=1735862400000&endTimeEpoch=1735948800000&language=1&channelIds=561066'
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can parse response', () => {
|
it('can parse response', () => {
|
||||||
|
@ -37,9 +38,9 @@ it('can parse response', () => {
|
||||||
|
|
||||||
expect(result).toMatchObject([
|
expect(result).toMatchObject([
|
||||||
{
|
{
|
||||||
title: "Πρώτη Ενημέρωση",
|
title: 'Πρώτη Ενημέρωση',
|
||||||
start: "2025-01-03T04:45:00.000Z",
|
start: '2025-01-03T04:45:00.000Z',
|
||||||
stop: "2025-01-03T07:30:00.000Z"
|
stop: '2025-01-03T07:30:00.000Z'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue