Fixed tests.

This commit is contained in:
SamTV12345 2024-02-05 20:40:03 +01:00
parent 1f43bf599b
commit dfef1e7784
7 changed files with 7 additions and 6 deletions

View file

@ -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');

View file

@ -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');

View file

@ -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');

View file

@ -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');

View file

@ -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;

View file

@ -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');

View file

@ -4,6 +4,7 @@ const measured = require('measured-core');
module.exports = measured.createCollection();
// @ts-ignore
module.exports.shutdown = async (hookName, context) => {
module.exports.end();
};