mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Turn automaticAllocation to false when resetting or rebirthing
closes #7627 fixes #7620
This commit is contained in:
committed by
Blade Barringer
parent
c77f165b3e
commit
a58bf4ee2b
@@ -233,4 +233,20 @@ describe('shared.ops.rebirth', () => {
|
||||
expect(user.achievements.rebirths).to.equal(2);
|
||||
expect(user.achievements.rebirthLevel).to.equal(MAX_LEVEL);
|
||||
});
|
||||
|
||||
it('keeps automaticAllocation false', () => {
|
||||
user.preferences.automaticAllocation = false;
|
||||
|
||||
rebirth(user);
|
||||
|
||||
expect(user.preferences.automaticAllocation).to.be.false;
|
||||
});
|
||||
|
||||
it('sets automaticAllocation to false when true', () => {
|
||||
user.preferences.automaticAllocation = true;
|
||||
|
||||
rebirth(user);
|
||||
|
||||
expect(user.preferences.automaticAllocation).to.be.false;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user