Turn automaticAllocation to false when resetting or rebirthing

closes #7627
fixes #7620
This commit is contained in:
MathWhiz
2016-06-08 17:47:06 -04:00
committed by Blade Barringer
parent c77f165b3e
commit a58bf4ee2b
4 changed files with 36 additions and 0 deletions

View File

@@ -76,4 +76,20 @@ describe('shared.ops.reset', () => {
expect(user.tasksOrder.dailys).to.be.empty;
expect(user.tasksOrder.rewards).to.be.empty;
});
it('keeps automaticAllocation false', () => {
user.preferences.automaticAllocation = false;
reset(user);
expect(user.preferences.automaticAllocation).to.be.false;
});
it('sets automaticAllocation to false when true', () => {
user.preferences.automaticAllocation = true;
reset(user);
expect(user.preferences.automaticAllocation).to.be.false;
});
});