mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-15 18:54:45 -04:00
tests: Simplify API key reading
Also delete unused imports.
This commit is contained in:
parent
ce0b151159
commit
048bd0f50d
12 changed files with 29 additions and 67 deletions
|
@ -1,5 +1,6 @@
|
|||
function m(mod) { return __dirname + '/../../src/' + mod; }
|
||||
|
||||
const apiHandler = require(m('node/handler/APIHandler'));
|
||||
const log4js = require(m('node_modules/log4js'));
|
||||
const server = require(m('node/server'));
|
||||
const settings = require(m('node/utils/Settings'));
|
||||
|
@ -9,6 +10,7 @@ const webaccess = require(m('node/hooks/express/webaccess'));
|
|||
const backups = {};
|
||||
let inited = false;
|
||||
|
||||
exports.apiKey = apiHandler.exportedForTestingOnly.apiKey;
|
||||
exports.agent = null;
|
||||
exports.baseUrl = null;
|
||||
exports.httpServer = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue