Converted more tests.

This commit is contained in:
SamTV12345 2024-08-17 16:46:29 +02:00
parent 154e67315c
commit fa5e2357b7
26 changed files with 172 additions and 78 deletions

View file

@ -36,8 +36,8 @@ const plugins = require('../../static/js/pluginfw/plugin_defs');
import log4js from 'log4js';
const messageLogger = log4js.getLogger('message');
const accessLogger = log4js.getLogger('access');
const hooks = require('../../static/js/pluginfw/hooks');
const stats = require('../stats')
const hooks = require('../../static/js/pluginfw/hooks.js');
import stats from '../stats';
const assert = require('assert').strict;
import {RateLimiterMemory} from 'rate-limiter-flexible';
import {ChangesetRequest, PadUserInfo, SocketClientRequest} from "../types/SocketClientRequest";

View file

@ -22,9 +22,9 @@
import {MapArrayType} from "../types/MapType";
import {SocketModule} from "../types/SocketModule";
const log4js = require('log4js');
import log4js from 'log4js';
import settings from '../utils/Settings';
const stats = require('../../node/stats')
import stats from '../../node/stats';
const logger = log4js.getLogger('socket.io');