mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix test lint
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
import paypalPayments from '../../../../../../website/server/libs/payments/paypal';
|
||||
|
||||
describe('payments : paypal #checkout', () => {
|
||||
let endpoint = '/paypal/checkout';
|
||||
const endpoint = '/paypal/checkout';
|
||||
let user;
|
||||
|
||||
beforeEach(async () => {
|
||||
|
||||
@@ -5,7 +5,7 @@ import paypalPayments from '../../../../../../website/server/libs/payments/paypa
|
||||
import apiError from '../../../../../../website/server/libs/apiError';
|
||||
|
||||
describe('payments : paypal #checkoutSuccess', () => {
|
||||
let endpoint = '/paypal/checkout/success';
|
||||
const endpoint = '/paypal/checkout/success';
|
||||
let user;
|
||||
|
||||
beforeEach(async () => {
|
||||
@@ -42,8 +42,8 @@ describe('payments : paypal #checkoutSuccess', () => {
|
||||
});
|
||||
|
||||
it('makes a purchase', async () => {
|
||||
let paymentId = 'test-paymentid';
|
||||
let customerId = 'test-customerId';
|
||||
const paymentId = 'test-paymentid';
|
||||
const customerId = 'test-customerId';
|
||||
|
||||
user = await generateUser({
|
||||
'profile.name': 'sender',
|
||||
|
||||
@@ -6,7 +6,7 @@ import shared from '../../../../../../website/common';
|
||||
import apiError from '../../../../../../website/server/libs/apiError';
|
||||
|
||||
describe('payments : paypal #subscribe', () => {
|
||||
let endpoint = '/paypal/subscribe';
|
||||
const endpoint = '/paypal/subscribe';
|
||||
let user;
|
||||
|
||||
beforeEach(async () => {
|
||||
@@ -33,8 +33,8 @@ describe('payments : paypal #subscribe', () => {
|
||||
});
|
||||
|
||||
it('makes a purchase', async () => {
|
||||
let subKey = 'basic_3mo';
|
||||
let sub = shared.content.subscriptionBlocks[subKey];
|
||||
const subKey = 'basic_3mo';
|
||||
const sub = shared.content.subscriptionBlocks[subKey];
|
||||
|
||||
user = await generateUser({
|
||||
'profile.name': 'sender',
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
import paypalPayments from '../../../../../../website/server/libs/payments/paypal';
|
||||
|
||||
describe('payments : paypal #subscribeCancel', () => {
|
||||
let endpoint = '/paypal/subscribe/cancel';
|
||||
const endpoint = '/paypal/subscribe/cancel';
|
||||
let user;
|
||||
|
||||
beforeEach(async () => {
|
||||
|
||||
@@ -5,7 +5,7 @@ import apiError from '../../../../../../website/server/libs/apiError';
|
||||
import paypalPayments from '../../../../../../website/server/libs/payments/paypal';
|
||||
|
||||
describe('payments : paypal #subscribeSuccess', () => {
|
||||
let endpoint = '/paypal/subscribe/success';
|
||||
const endpoint = '/paypal/subscribe/success';
|
||||
let user;
|
||||
|
||||
beforeEach(async () => {
|
||||
@@ -32,7 +32,7 @@ describe('payments : paypal #subscribeSuccess', () => {
|
||||
});
|
||||
|
||||
it('creates a subscription', async () => {
|
||||
let token = 'test-token';
|
||||
const token = 'test-token';
|
||||
|
||||
user = await generateUser({
|
||||
'profile.name': 'sender',
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
import paypalPayments from '../../../../../../website/server/libs/payments/paypal';
|
||||
|
||||
describe('payments - paypal - #ipn', () => {
|
||||
let endpoint = '/paypal/ipn';
|
||||
const endpoint = '/paypal/ipn';
|
||||
let user;
|
||||
|
||||
beforeEach(async () => {
|
||||
@@ -12,7 +12,7 @@ describe('payments - paypal - #ipn', () => {
|
||||
});
|
||||
|
||||
it('verifies credentials', async () => {
|
||||
let result = await user.post(endpoint);
|
||||
const result = await user.post(endpoint);
|
||||
expect(result).to.eql('OK');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user