From: Jérôme Benoit Date: Wed, 28 Aug 2024 16:40:40 +0000 (+0200) Subject: test: fix simulator configuration test X-Git-Tag: ocpp-server@v1.5.2~83 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=32f3b3045faf65cdfdf4ef7dba57e782b30b4430;p=e-mobility-charging-stations-simulator.git test: fix simulator configuration test Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index a8e16dab..e4736c26 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -79,6 +79,15 @@ const defaultWorkerConfiguration: WorkerConfiguration = { // eslint-disable-next-line @typescript-eslint/no-extraneous-class export class Configuration { + public static configurationChangeCallback?: () => Promise + + private static configurationData?: ConfigurationData + private static configurationFile: string | undefined + private static configurationFileReloading = false + private static configurationFileWatcher?: FSWatcher + private static configurationSectionCache: Map + + // eslint-disable-next-line perfectionist/sort-classes static { const configurationFile = join(dirname(fileURLToPath(import.meta.url)), 'assets', 'config.json') if (existsSync(configurationFile)) { @@ -115,14 +124,6 @@ export class Configuration { ]) } - public static configurationChangeCallback?: () => Promise - private static configurationData?: ConfigurationData - private static configurationFile: string | undefined - private static configurationFileReloading = false - private static configurationFileWatcher?: FSWatcher - - private static configurationSectionCache: Map - private constructor () { // This is intentional }