mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-07 07:37:11 -04:00
Fixed tests.
This commit is contained in:
parent
1f43bf599b
commit
dfef1e7784
7 changed files with 7 additions and 6 deletions
|
@ -24,7 +24,7 @@
|
|||
const ueberDB = require('ueberdb2');
|
||||
const settings = require('../utils/Settings');
|
||||
const log4js = require('log4js');
|
||||
import stats from '../stats';
|
||||
const stats = require('../stats')
|
||||
|
||||
const logger = log4js.getLogger('ueberDB');
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ const log4js = require('log4js');
|
|||
const messageLogger = log4js.getLogger('message');
|
||||
const accessLogger = log4js.getLogger('access');
|
||||
const hooks = require('../../static/js/pluginfw/hooks.js');
|
||||
import stats from '../stats'
|
||||
const stats = require('../stats')
|
||||
const assert = require('assert').strict;
|
||||
const {RateLimiterMemory} = require('rate-limiter-flexible');
|
||||
const webaccess = require('../hooks/express/webaccess');
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
const log4js = require('log4js');
|
||||
const settings = require('../utils/Settings');
|
||||
import stats from '../stats'
|
||||
const stats = require('../stats')
|
||||
|
||||
const logger = log4js.getLogger('socket.io');
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ const hooks = require('../../static/js/pluginfw/hooks');
|
|||
import log4js from 'log4js';
|
||||
const SessionStore = require('../db/SessionStore');
|
||||
const settings = require('../utils/Settings');
|
||||
import stats from '../stats';
|
||||
const stats = require('../stats')
|
||||
import util from 'util';
|
||||
const webaccess = require('./express/webaccess');
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import {ArgsExpressType} from "../../types/ArgsExpressType";
|
||||
import {ErrorCaused} from "../../types/ErrorCaused";
|
||||
|
||||
import stats from '../../stats';
|
||||
const stats = require('../stats')
|
||||
|
||||
exports.expressCreateServer = (hook_name:string, args: ArgsExpressType, cb:Function) => {
|
||||
exports.app = args.app;
|
||||
|
|
|
@ -55,7 +55,7 @@ const pluginDefs = require('../static/js/pluginfw/plugin_defs');
|
|||
const plugins = require('../static/js/pluginfw/plugins');
|
||||
const installer = require('../static/js/pluginfw/installer');
|
||||
const {Gate} = require('./utils/promises');
|
||||
import stats from './stats';
|
||||
const stats = require('../stats')
|
||||
|
||||
const logger = log4js.getLogger('server');
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ const measured = require('measured-core');
|
|||
|
||||
module.exports = measured.createCollection();
|
||||
|
||||
// @ts-ignore
|
||||
module.exports.shutdown = async (hookName, context) => {
|
||||
module.exports.end();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue