Merge branch 'release' into develop

This commit is contained in:
SabreCat
2022-11-15 19:29:37 -06:00
19 changed files with 418 additions and 148 deletions

View File

@@ -417,6 +417,7 @@ 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();
@@ -430,6 +431,8 @@ 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({