From a2d851db23574dc08df02ce5d641110a8797fd7e Mon Sep 17 00:00:00 2001 From: Joby Walker Date: Fri, 1 Aug 2014 10:19:19 -0700 Subject: [PATCH] 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. --- test/algos.mocha.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/algos.mocha.coffee b/test/algos.mocha.coffee index ff9a11198d..199c5eb887 100644 --- a/test/algos.mocha.coffee +++ b/test/algos.mocha.coffee @@ -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)