enable all tests again, don't log to console in tests

This commit is contained in:
Dušan Juretić 2013-11-09 20:56:18 -03:00
parent 317f1a9319
commit 20192b1d0a

View file

@ -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]