Merge branch 'release' into develop

This commit is contained in:
SabreCat
2022-11-18 15:29:06 -06:00
5 changed files with 2 additions and 25 deletions

View File

@@ -417,7 +417,6 @@ describe('Apple Payments', () => {
it('errors when a user is using the same subscription', async () => {
user = new User();
user.purchased.plan.dateUpdated = moment().subtract(1, 'hours').toDate();
await user.save();
payments.createSubscription.restore();
@@ -431,8 +430,6 @@ describe('Apple Payments', () => {
}]);
await applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing);
user.purchased.plan.dateUpdated = moment().subtract(1, 'hours').toDate();
await user.save();
await expect(applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing))
.to.eventually.be.rejected.and.to.eql({