more checks on the item.klass, also added the specialClass checks (#10859)

This commit is contained in:
negue
2018-11-22 14:35:34 +01:00
committed by Matteo Pagliazzi
parent a2b38ffb02
commit e2c5b9058b
2 changed files with 13 additions and 1 deletions
+9
View File
@@ -246,5 +246,14 @@ describe('shared.ops.buyMarketGear', () => {
expect(user.items.gear.owned).to.have.property('head_special_2', true);
});
it('does buyGear equipment if it is an armoire item that an user previously lost', () => {
user.stats.gp = 200;
user.items.gear.owned.shield_armoire_ramHornShield = false;
buyGear(user, {params: {key: 'shield_armoire_ramHornShield'}});
expect(user.items.gear.owned).to.have.property('shield_armoire_ramHornShield', true);
});
});
});