lint: Fix ESLint errors in backend tests

This commit is contained in:
Richard Hansen 2021-02-16 18:25:15 -05:00
parent 00d45e3229
commit 3d2f77f75d
7 changed files with 79 additions and 78 deletions

View file

@ -1,3 +1,5 @@
'use strict';
const assert = require('assert').strict;
const common = require('../../common');
const settings = require('../../../../node/utils/Settings');
@ -12,6 +14,8 @@ let authorID = '';
let sessionID = '';
let padID = makeid();
const endPoint = (point) => `/api/${apiVersion}/${point}?apikey=${apiKey}`;
describe(__filename, function () {
describe('API Versioning', function () {
it('errors if can not connect', async function () {
@ -389,11 +393,6 @@ describe(__filename, function () {
});
});
const endPoint = function (point) {
return `/api/${apiVersion}/${point}?apikey=${apiKey}`;
};
function makeid() {
let text = '';
const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';