From b25fa06019e1bcc994d752bee4ca77d35a60b758 Mon Sep 17 00:00:00 2001 From: Allen Pan Date: Fri, 22 May 2015 23:42:05 -0700 Subject: [PATCH] Fixed algos test to pass in task instead of task.repeat to shouldDo (API changed a few commits ago, but missed updating this test). --- test/common/algos.mocha.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/algos.mocha.coffee b/test/common/algos.mocha.coffee index d6c1512e42..cc21db931b 100644 --- a/test/common/algos.mocha.coffee +++ b/test/common/algos.mocha.coffee @@ -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