mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 05:07:22 +01:00
Merge branch 'release' into develop
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user