mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
second trial in habit test
This commit is contained in:
parent
1087f4abc4
commit
d5b233106c
1 changed files with 11 additions and 1 deletions
|
|
@ -104,7 +104,17 @@ describe 'User', ->
|
|||
expect(statsAfter.hp).to.eql statsBefore.hp
|
||||
# Task should have lost value
|
||||
expect(taskBefore.value).to.eql 0
|
||||
expect(taskAfter.value).to.be.lessThan 1
|
||||
expect(taskAfter.value).to.be.greaterThan taskBefore.value
|
||||
|
||||
## Trial 2
|
||||
taskBefore = pathSnapshots(taskPath)
|
||||
scoring.score(uuid, 'up')
|
||||
taskAfter = pathSnapshots(taskPath)
|
||||
# Should have lost in value
|
||||
expect(taskAfter.value).to.be > taskBefore.value
|
||||
# And lost more than trial 1
|
||||
diff = Math.abs(taskAfter.value) - Math.abs(taskBefore.value)
|
||||
expect(diff).to.be.lessThan 1
|
||||
|
||||
it 'makes history entry for habit'
|
||||
it 'makes proper modifications each time when clicking + / - in rapid succession'
|
||||
|
|
|
|||
Loading…
Reference in a new issue