mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(test): linting
This commit is contained in:
@@ -444,7 +444,7 @@ describe('Apple Payments', () => {
|
|||||||
.returns([{
|
.returns([{
|
||||||
expirationDate: moment.utc().add({ day: 1 }).toDate(),
|
expirationDate: moment.utc().add({ day: 1 }).toDate(),
|
||||||
productId: sku,
|
productId: sku,
|
||||||
transactionId: token + 'renew',
|
transactionId: `${token}renew`,
|
||||||
originalTransactionId: token,
|
originalTransactionId: token,
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
@@ -472,7 +472,9 @@ describe('Apple Payments', () => {
|
|||||||
await applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing);
|
await applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing);
|
||||||
|
|
||||||
const secondUser = new User();
|
const secondUser = new User();
|
||||||
await expect(applePayments.subscribe(sku, secondUser, receipt, headers, nextPaymentProcessing))
|
await expect(applePayments.subscribe(
|
||||||
|
sku, secondUser, receipt, headers, nextPaymentProcessing,
|
||||||
|
))
|
||||||
.to.eventually.be.rejected.and.to.eql({
|
.to.eventually.be.rejected.and.to.eql({
|
||||||
httpCode: 401,
|
httpCode: 401,
|
||||||
name: 'NotAuthorized',
|
name: 'NotAuthorized',
|
||||||
@@ -480,7 +482,6 @@ describe('Apple Payments', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('cancelSubscribe ', () => {
|
describe('cancelSubscribe ', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user