fixed the url function: reversed the diff direction; removed unnecessary extra minute from currDate
adjusted the test as well
This commit is contained in:
1 parent
2f1ebda654
commit
6145a69945
2 files changed
+3
-3
No files matched your search
@@ -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