mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 12:18:51 +00:00
Fix: OK for unpurchaseable quest to have no value
Changing test to only check that a quest has value if it is "canBuy=true". This (with PR#262) should fix the last test error on habitrpg-shared.
This commit is contained in:
parent
4d6562b86b
commit
a2d851db23
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ describe 'User', ->
|
|||
expect(quest.notes()).to.be.an('string')
|
||||
expect(quest.completion()).to.be.an('string') if quest.completion
|
||||
expect(quest.previous).to.be.an('string') if quest.previous
|
||||
expect(quest.value).to.be.greaterThan 0
|
||||
expect(quest.value).to.be.greaterThan 0 if quest.canBuy
|
||||
expect(quest.drop.gp).to.not.be.lessThan 0
|
||||
expect(quest.drop.exp).to.not.be.lessThan 0
|
||||
expect(quest.drop.items).to.be.an(Array)
|
||||
|
|
|
|||
Loading…
Reference in a new issue