mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 20:58:51 +00:00
fix(test): should hatch Desert pet to get Desert achievement
This commit is contained in:
parent
10a4dc5128
commit
7cc705ffcd
1 changed files with 4 additions and 6 deletions
|
|
@ -169,7 +169,6 @@ describe('shared.ops.hatch', () => {
|
|||
|
||||
it('awards Back to Basics achievement', () => {
|
||||
user.items.pets = {
|
||||
'Wolf-Base': 5,
|
||||
'TigerCub-Base': 5,
|
||||
'PandaCub-Base': 10,
|
||||
'LionCub-Base': 5,
|
||||
|
|
@ -180,14 +179,13 @@ describe('shared.ops.hatch', () => {
|
|||
'BearCub-Base': 5,
|
||||
};
|
||||
user.items.eggs = { Wolf: 1 };
|
||||
user.items.hatchingPotions = { Spooky: 1 };
|
||||
hatch(user, { params: { egg: 'Wolf', hatchingPotion: 'Spooky' } });
|
||||
user.items.hatchingPotions = { Base: 1 };
|
||||
hatch(user, { params: { egg: 'Wolf', hatchingPotion: 'Base' } });
|
||||
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,
|
||||
|
|
@ -198,8 +196,8 @@ describe('shared.ops.hatch', () => {
|
|||
'BearCub-Desert': 5,
|
||||
};
|
||||
user.items.eggs = { Wolf: 1 };
|
||||
user.items.hatchingPotions = { Spooky: 1 };
|
||||
hatch(user, { params: { egg: 'Wolf', hatchingPotion: 'Spooky' } });
|
||||
user.items.hatchingPotions = { Desert: 1 };
|
||||
hatch(user, { params: { egg: 'Wolf', hatchingPotion: 'Desert' } });
|
||||
expect(user.achievements.dustDevil).to.eql(true);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue