mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
add minimum duration for DOM parser
This commit is contained in:
@ -72,7 +72,7 @@ describe(parseUsingDOM, () => {
|
||||
})
|
||||
|
||||
|
||||
it('should return duration based on current time if ' +
|
||||
it('should return duration of minimum 120 minutes if ' +
|
||||
'no time data is found', () => {
|
||||
const now = new Date('2020-01-01 12:00:00')
|
||||
const spy = jest
|
||||
@ -95,7 +95,7 @@ describe(parseUsingDOM, () => {
|
||||
|
||||
spy.mockRestore()
|
||||
|
||||
expect(duration).to.deep.equal({ minutes: 0 })
|
||||
expect(duration).to.deep.equal({ minutes: 120 })
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user