mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-21 21:34:15 +00:00
Added dailies[0].history check and changed array check to' empty'
This commit is contained in:
parent
7ac2c0c0c4
commit
2d9707bd39
1 changed files with 2 additions and 1 deletions
|
|
@ -212,8 +212,9 @@ describe 'User', ->
|
|||
|
||||
it 'gives credit for complete dailies', ->
|
||||
user.dailys[0].completed = true
|
||||
expect(user.dailys[0].history).to.be.empty
|
||||
cron()
|
||||
expect(user.dailys[0].history.length).to.be.ok
|
||||
expect(user.dailys[0].history).to.not.be.empty
|
||||
|
||||
it 'damages user for incomplete dailies after checkout', ->
|
||||
expect(user).toHaveHP 50
|
||||
|
|
|
|||
Loading…
Reference in a new issue