mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
lint: Run eslint --fix
on bin/
and tests/
This commit is contained in:
parent
0625739cb8
commit
b8d07a42eb
78 changed files with 4319 additions and 4599 deletions
|
@ -1,6 +1,6 @@
|
|||
/* global __dirname, exports, require */
|
||||
|
||||
function m(mod) { return __dirname + '/../../src/' + mod; }
|
||||
function m(mod) { return `${__dirname}/../../src/${mod}`; }
|
||||
|
||||
const apiHandler = require(m('node/handler/APIHandler'));
|
||||
const log4js = require(m('node_modules/log4js'));
|
||||
|
@ -25,7 +25,7 @@ const logLevel = exports.logger.level;
|
|||
// https://github.com/mochajs/mocha/issues/2640
|
||||
process.on('unhandledRejection', (reason, promise) => { throw reason; });
|
||||
|
||||
exports.init = async function() {
|
||||
exports.init = async function () {
|
||||
if (inited) return exports.agent;
|
||||
inited = true;
|
||||
|
||||
|
@ -50,7 +50,7 @@ exports.init = async function() {
|
|||
backups.authnFailureDelayMs = webaccess.authnFailureDelayMs;
|
||||
webaccess.authnFailureDelayMs = 0;
|
||||
|
||||
after(async function() {
|
||||
after(async function () {
|
||||
webaccess.authnFailureDelayMs = backups.authnFailureDelayMs;
|
||||
await server.stop();
|
||||
// Note: This does not unset settings that were added.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue