mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
fix(tests): renewig typos
This commit is contained in:
@@ -256,7 +256,7 @@ describe('Google Payments', () => {
|
|||||||
expirationDate,
|
expirationDate,
|
||||||
});
|
});
|
||||||
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')
|
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')
|
||||||
.returns([{ expirationDate: expirationDate.toDate(), autoRenewig: false }]);
|
.returns([{ expirationDate: expirationDate.toDate(), autoRenewing: false }]);
|
||||||
iapIsValidatedStub = sinon.stub(iap, 'isValidated')
|
iapIsValidatedStub = sinon.stub(iap, 'isValidated')
|
||||||
.returns(true);
|
.returns(true);
|
||||||
|
|
||||||
@@ -328,7 +328,7 @@ describe('Google Payments', () => {
|
|||||||
|
|
||||||
it('should not cancel a user subscription with autorenew', async () => {
|
it('should not cancel a user subscription with autorenew', async () => {
|
||||||
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')
|
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')
|
||||||
.returns([{ autoRenewig: true }]);
|
.returns([{ autoRenewing: true }]);
|
||||||
await googlePayments.cancelSubscribe(user, headers);
|
await googlePayments.cancelSubscribe(user, headers);
|
||||||
|
|
||||||
expect(iapSetupStub).to.be.calledOnce;
|
expect(iapSetupStub).to.be.calledOnce;
|
||||||
|
|||||||
Reference in New Issue
Block a user