fix(shops): don't push if empty

Also corrects text on hatching potions
This commit is contained in:
SabreCat
2017-06-02 15:28:28 +00:00
parent de1e477ce2
commit db1c2fd5a2
3 changed files with 15 additions and 5 deletions

View File

@@ -13,6 +13,12 @@ describe('shops', () => {
expect(shopCategories.length).to.be.greaterThan(2);
});
it('does not contain an empty category', () => {
_.each(shopCategories, (category) => {
expect(category.items.length).to.be.greaterThan(0);
});
});
it('does not duplicate identifiers', () => {
let identifiers = Array.from(new Set(shopCategories.map(cat => cat.identifier)));