tests passing for basic scoring

This commit is contained in:
Tyler Renelle
2012-10-11 11:41:47 -04:00
parent bad2f6f5b3
commit 476fb63a0d
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ describe 'User', ->
## Trial 2
freshTask {type: 'habit', text: 'Habit', completed: false}
shouldBe = modificationsLookup({lvl:1,armor:0,weapon:0}, 'down', 10)
_.times 10, -> scoring.score(uuid,'down', {times:10})
scoring.score(uuid,'down', {times:10})
[stats, task] = statsTask()
expect(stats.hp).to.be.eql shouldBe.user.stats.hp
expect(task.value).to.eql shouldBe.value