fix(test): allow for long months

This commit is contained in:
SabreCat
2017-06-30 20:47:18 +00:00
parent 33a39d3683
commit 1ce1ed7c6b

View File

@@ -596,7 +596,7 @@ describe('Purchasing a group plan for group', () => {
let updatedUser = await User.findById(recipient._id).exec();
expect(updatedUser.purchased.plan.extraMonths).to.within(7, 8);
expect(updatedUser.purchased.plan.extraMonths).to.within(7, 9);
});
it('adds months to members with existing recurring subscription and ignores existing negative extraMonths', async () => {