mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
enable all tests again, don't log to console in tests
This commit is contained in:
parent
317f1a9319
commit
20192b1d0a
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue