feat(content): new pet color achievements

This commit is contained in:
Sabe Jones
2019-09-17 16:10:32 -05:00
parent 7425120759
commit 7d732b5612
17 changed files with 225 additions and 47 deletions

View File

@@ -177,6 +177,24 @@ describe('shared.ops.hatch', () => {
hatch(user, {params: {egg: 'Wolf', hatchingPotion: 'Spooky'}});
expect(user.achievements.backToBasics).to.eql(true);
});
it('awards Dust Devil achievement', () => {
user.items.pets = {
'Wolf-Desert': 5,
'TigerCub-Desert': 5,
'PandaCub-Desert': 10,
'LionCub-Desert': 5,
'Fox-Desert': 5,
'FlyingPig-Desert': 5,
'Dragon-Desert': 5,
'Cactus-Desert': 15,
'BearCub-Desert': 5,
};
user.items.eggs = {Wolf: 1};
user.items.hatchingPotions = {Spooky: 1};
hatch(user, {params: {egg: 'Wolf', hatchingPotion: 'Spooky'}});
expect(user.achievements.dustDevil).to.eql(true);
});
});
});
});