From 20192b1d0aaf421dbbf74a5a0d174554e68671a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Jureti=C4=87?= Date: Sat, 9 Nov 2013 20:56:18 -0300 Subject: [PATCH] enable all tests again, don't log to console in tests --- tests/algos.mocha.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/algos.mocha.coffee b/tests/algos.mocha.coffee index 644434e021..1b7437a1d4 100644 --- a/tests/algos.mocha.coffee +++ b/tests/algos.mocha.coffee @@ -221,7 +221,7 @@ describe 'Cron', -> afterTasks = after.habits.concat(after.dailys).concat(after.todos).concat(after.rewards) expect(beforeTasks).to.eql afterTasks - it.only 'should preen user history', -> + it 'should preen user history', -> {before,after} = beforeAfter({daysAgo:1}) history = [ # Last year should be condensed to one entry, avg: 1 @@ -270,7 +270,7 @@ describe 'Cron', -> after.history = {exp: _.cloneDeep(history), todos: _.cloneDeep(history)} after.habits[0].history = _.cloneDeep(history) algos.cron(after) - console.log after.habits[0].history + # console.log after.habits[0].history # _.each [after.history.exp, after.history.todos, after.habits[0].history], (arr) -> # expect(arr.length).to.be 15 # expect(arr).to.eql [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]