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

@ -14,6 +14,8 @@ const api = supertest(`http://${settings.ip}:${settings.port}`);
const apiKey = common.apiKey;
const apiVersion = 1;
const endPoint = (point, version) => `/api/${version || apiVersion}/${point}?apikey=${apiKey}`;
const testImports = {
'malformed': {
input: '<html><body><li>wtf</ul></body></html>',
@ -306,12 +308,6 @@ describe(__filename, function () {
});
});
function endPoint(point, version) {
version = version || apiVersion;
return `/api/${version}/${point}?apikey=${apiKey}`;
}
function makeid() {
let text = '';
const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';