mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Fix: if wrapping
This commit is contained in:
@@ -13,8 +13,7 @@ describe('getDebuffPotionItems', () => {
|
||||
user = generateUser();
|
||||
});
|
||||
|
||||
for (const key in TRANSFORMATION_DEBUFFS_LIST) {
|
||||
if (Object.prototype.hasOwnProperty.call(TRANSFORMATION_DEBUFFS_LIST, key)) {
|
||||
for (const key of Object.keys(TRANSFORMATION_DEBUFFS_LIST)) {
|
||||
const debuff = TRANSFORMATION_DEBUFFS_LIST[key];
|
||||
// Here we itterate whole object to dynamicaly create test suites as
|
||||
// it described in dock of mocha
|
||||
@@ -30,7 +29,6 @@ describe('getDebuffPotionItems', () => {
|
||||
.includes({ path: `spells.special.${debuff}`, type: 'debuffPotion' });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
it('Should return all debuff potions for all buffs', () => {
|
||||
user.stats.buffs.seafoam = true;
|
||||
|
||||
Reference in New Issue
Block a user