fix(test): linting

This commit is contained in:
SabreCat
2022-11-02 14:44:49 -05:00
parent ab953440e3
commit b65fa941b9

View File

@@ -426,9 +426,9 @@ describe('Apple Payments', () => {
transactionId: token, transactionId: token,
originalTransactionId: token, originalTransactionId: token,
}]); }]);
await applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing); await applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing);
await expect(applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing)) await expect(applePayments.subscribe(sku, user, receipt, headers, nextPaymentProcessing))
.to.eventually.be.rejected.and.to.eql({ .to.eventually.be.rejected.and.to.eql({
httpCode: 401, httpCode: 401,
@@ -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 ', () => {