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

@@ -6,8 +6,9 @@ import {
import amzLib from '../../../../../../website/server/libs/payments/amazon';
describe('payments : amazon #subscribeCancel', () => {
let endpoint = '/amazon/subscribe/cancel?noRedirect=true';
let user, group, amazonSubscribeCancelStub;
const endpoint = '/amazon/subscribe/cancel?noRedirect=true';
let user; let group; let
amazonSubscribeCancelStub;
beforeEach(async () => {
user = await generateUser();

View File

@@ -4,8 +4,9 @@ import {
import amzLib from '../../../../../../website/server/libs/payments/amazon';
describe('payments - amazon - #checkout', () => {
let endpoint = '/amazon/checkout';
let user, amazonCheckoutStub;
const endpoint = '/amazon/checkout';
let user; let
amazonCheckoutStub;
beforeEach(async () => {
user = await generateUser();
@@ -37,7 +38,7 @@ describe('payments - amazon - #checkout', () => {
balance: 2,
});
let gift = {
const gift = {
type: 'gems',
gems: {
amount: 16,
@@ -45,7 +46,7 @@ describe('payments - amazon - #checkout', () => {
},
};
let orderReferenceId = 'orderReferenceId-example';
const orderReferenceId = 'orderReferenceId-example';
await user.post(endpoint, {
gift,

View File

@@ -3,7 +3,7 @@ import {
} from '../../../../../helpers/api-integration/v3';
describe('payments - amazon - #createOrderReferenceId', () => {
let endpoint = '/amazon/createOrderReferenceId';
const endpoint = '/amazon/createOrderReferenceId';
let user;
beforeEach(async () => {

View File

@@ -6,8 +6,9 @@ import {
import amzLib from '../../../../../../website/server/libs/payments/amazon';
describe('payments - amazon - #subscribe', () => {
let endpoint = '/amazon/subscribe';
let user, group, subscribeWithAmazonStub;
const endpoint = '/amazon/subscribe';
let user; let group; let
subscribeWithAmazonStub;
beforeEach(async () => {
user = await generateUser();
@@ -22,8 +23,8 @@ describe('payments - amazon - #subscribe', () => {
});
describe('success', () => {
let billingAgreementId = 'billingAgreementId-example';
let subscription = 'basic_3mo';
const billingAgreementId = 'billingAgreementId-example';
const subscription = 'basic_3mo';
let coupon;
beforeEach(() => {

View File

@@ -3,7 +3,7 @@ import {
} from '../../../../../helpers/api-integration/v3';
describe('payments : amazon', () => {
let endpoint = '/amazon/verifyAccessToken';
const endpoint = '/amazon/verifyAccessToken';
let user;
beforeEach(async () => {