mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Set daillys startDate in the past
This commit is contained in:
parent
0dcd388925
commit
a15506e951
1 changed files with 1 additions and 0 deletions
|
|
@ -792,6 +792,7 @@ describe 'Cron', ->
|
|||
before.dailys[0].repeat = after.dailys[0].repeat = options.repeat if options.repeat
|
||||
before.dailys[0].streak = after.dailys[0].streak = 10
|
||||
before.dailys[0].completed = after.dailys[0].completed = true if options.checked
|
||||
before.dailys[0].startDate = after.dailys[0].startDate = moment().subtract(30, 'days')
|
||||
if options.shouldDo
|
||||
expect(shared.shouldDo(now.toDate(), after.dailys[0], {timezoneOffset, dayStart:options.dayStart, now})).to.be.ok()
|
||||
after.fns.cron {now}
|
||||
|
|
|
|||
Loading…
Reference in a new issue