mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Fixed algos test to pass in task instead of task.repeat to shouldDo (API changed a few commits ago, but missed updating this test).
This commit is contained in:
parent
56f0e3ae4a
commit
b25fa06019
1 changed files with 1 additions and 1 deletions
|
|
@ -793,7 +793,7 @@ describe 'Cron', ->
|
|||
before.dailys[0].streak = after.dailys[0].streak = 10
|
||||
before.dailys[0].completed = after.dailys[0].completed = true if options.checked
|
||||
if options.shouldDo
|
||||
expect(shared.shouldDo(now.toDate(), options.repeat, {timezoneOffset, dayStart:options.dayStart, now})).to.be.ok()
|
||||
expect(shared.shouldDo(now.toDate(), after.dailys[0], {timezoneOffset, dayStart:options.dayStart, now})).to.be.ok()
|
||||
after.fns.cron {now}
|
||||
before.stats.mp=after.stats.mp #FIXME
|
||||
switch options.expect
|
||||
|
|
|
|||
Loading…
Reference in a new issue