mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
fixed the url function: reversed the diff direction; removed unnecessary extra minute from currDate
adjusted the test as well
This commit is contained in:
@@ -24,7 +24,7 @@ it('can generate valid url', () => {
|
||||
})
|
||||
|
||||
it('can generate valid url for next day', () => {
|
||||
MockDate.set(dayjs.utc('2021-11-25', 'YYYY-MM-DD').startOf('d'))
|
||||
MockDate.set(dayjs.utc('2021-11-23', 'YYYY-MM-DD').startOf('d'))
|
||||
expect(url({ channel, date })).toBe(
|
||||
'https://programtv.onet.pl/program-tv/13th-street-250?dzien=1'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user