mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
22 lines
614 B
JavaScript
22 lines
614 B
JavaScript
import * as armoireSet from '../../../website/common/script/content/gear/sets/armoire';
|
|
|
|
describe('armoireSet items', () => {
|
|
it('checks if canOwn has the same id', () => {
|
|
for (const type of Object.keys(armoireSet)) {
|
|
for (const itemKey of Object.keys(armoireSet[type])) {
|
|
const ownedKey = `${type}_armoire_${itemKey}`;
|
|
|
|
expect(armoireSet[type][itemKey].canOwn({
|
|
items: {
|
|
gear: {
|
|
owned: {
|
|
[ownedKey]: true,
|
|
},
|
|
},
|
|
},
|
|
}), `${ownedKey} canOwn is broken`).to.eq(true);
|
|
}
|
|
}
|
|
});
|
|
});
|