fix test lint

This commit is contained in:
Matteo Pagliazzi
2019-10-08 20:45:38 +02:00
parent e37f4467f8
commit 85fb5f33aa
367 changed files with 6635 additions and 6080 deletions

View File

@@ -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 () => {

View File

@@ -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',

View File

@@ -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',

View File

@@ -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 () => {

View File

@@ -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',

View File

@@ -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');
});