From defcb653d86280048a9ed212a931197007a4930a Mon Sep 17 00:00:00 2001 From: Tomasz Sikora Date: Thu, 17 Sep 2020 09:48:16 +0200 Subject: [PATCH] Fix lint errors --- src/Consents.js | 2 +- test/consents-api.spec.js | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Consents.js b/src/Consents.js index 7e33d56..24473c9 100644 --- a/src/Consents.js +++ b/src/Consents.js @@ -6,6 +6,6 @@ module.exports = class Consents { } list (callback) { - return this.client.get(`/consents`, null, callback) + return this.client.get('/consents', null, callback) } } diff --git a/test/consents-api.spec.js b/test/consents-api.spec.js index df8dfbc..645b8b7 100644 --- a/test/consents-api.spec.js +++ b/test/consents-api.spec.js @@ -1,12 +1,11 @@ /* eslint-env mocha */ /* eslint-disable no-unused-expressions */ -var nock = require('nock') -var { expect } = require('chai') -var VoucherifyClient = require('./client-loader') -var fixtures = require('./fixtures') -var reqWithoutBody = fixtures.reqWithoutBody -var reqWithBody = fixtures.reqWithBody +const nock = require('nock') +const { expect } = require('chai') +const VoucherifyClient = require('./client-loader') +const fixtures = require('./fixtures') +const reqWithoutBody = fixtures.reqWithoutBody nock.disableNetConnect()