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

@ -16,6 +16,8 @@ const apiKey = common.apiKey;
let apiVersion = 1;
const testPadId = makeid();
const endPoint = (point, version) => `/api/${version || apiVersion}/${point}?apikey=${apiKey}`;
describe(__filename, function () {
describe('Connectivity For Character Encoding', function () {
it('can connect', function (done) {
@ -101,11 +103,6 @@ describe(__filename, function () {
*/
var endPoint = function (point, version) {
version = version || apiVersion;
return `/api/${version}/${point}?apikey=${apiKey}`;
};
function makeid() {
let text = '';
const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';