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:
Allen Pan
2015-05-22 23:42:05 -07:00
parent 56f0e3ae4a
commit b25fa06019

View File

@@ -793,7 +793,7 @@ describe 'Cron', ->
before.dailys[0].streak = after.dailys[0].streak = 10 before.dailys[0].streak = after.dailys[0].streak = 10
before.dailys[0].completed = after.dailys[0].completed = true if options.checked before.dailys[0].completed = after.dailys[0].completed = true if options.checked
if options.shouldDo 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} after.fns.cron {now}
before.stats.mp=after.stats.mp #FIXME before.stats.mp=after.stats.mp #FIXME
switch options.expect switch options.expect