mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
Updated quest test to only check on item drops if item drops exist (Basi
list was causing it to fail)
This commit is contained in:
parent
e93754e50b
commit
f9c5b3b0ae
1 changed files with 2 additions and 1 deletions
|
|
@ -320,7 +320,8 @@ describe 'User', ->
|
|||
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)
|
||||
if quest.drop.items
|
||||
expect(quest.drop.items).to.be.an(Object)
|
||||
if quest.boss
|
||||
expect(quest.boss.name()).to.be.an('string')
|
||||
expect(quest.boss.hp).to.be.greaterThan 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue