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]