Group plans add mount (#8548)

* Added jakcalop mount to group plan members

* Changed pet assignment to mount
This commit is contained in:
Keith Holliday
2017-03-09 16:15:00 -07:00
committed by GitHub
parent 61db283473
commit 38b894db56
2 changed files with 5 additions and 3 deletions
@@ -142,7 +142,6 @@ describe('Purchasing a subscription for group', () => {
data.groupId = group._id;
await api.createSubscription(data);
let updatedLeader = await User.findById(user._id).exec();
expect(updatedLeader.purchased.plan.planId).to.eql('group_plan_auto');
@@ -154,6 +153,8 @@ describe('Purchasing a subscription for group', () => {
expect(updatedLeader.purchased.plan.dateTerminated).to.eql(null);
expect(updatedLeader.purchased.plan.lastBillingDate).to.not.exist;
expect(updatedLeader.purchased.plan.dateCreated).to.exist;
expect(updatedLeader.items.mounts['Jackalope-RoyalPurple']).to.be.true;
});
it('sends an email to members of group', async () => {