mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
fix(test): Change quest's canBuy to fn call
This commit is contained in:
parent
38bdbf020b
commit
926bedcfea
1 changed files with 1 additions and 1 deletions
|
|
@ -544,7 +544,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 if quest.canBuy
|
||||
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.category).to.match(/pet|unlockable|gold|world/)
|
||||
|
|
|
|||
Loading…
Reference in a new issue