From: Jérôme Benoit Date: Fri, 3 Apr 2026 15:17:43 +0000 (+0200) Subject: fix(tests): use version-agnostic StandardParametersKey X-Git-Tag: ocpp-server@v4.3.0~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5c9daef058ccdccd97db9d1ab7ebb38f7be0165b;p=e-mobility-charging-stations-simulator.git fix(tests): use version-agnostic StandardParametersKey Replace OCPP16StandardParametersKey import in common test with version-agnostic StandardParametersKey union type. --- diff --git a/tests/charging-station/SharedLRUCache.test.ts b/tests/charging-station/SharedLRUCache.test.ts index e81c36ee..e5465df5 100644 --- a/tests/charging-station/SharedLRUCache.test.ts +++ b/tests/charging-station/SharedLRUCache.test.ts @@ -19,7 +19,7 @@ import type { import { Bootstrap } from '../../src/charging-station/Bootstrap.js' import { SharedLRUCache } from '../../src/charging-station/SharedLRUCache.js' -import { OCPP16StandardParametersKey } from '../../src/types/index.js' +import { StandardParametersKey } from '../../src/types/index.js' import { standardCleanup } from '../helpers/TestLifecycleHelpers.js' interface BootstrapStatic { @@ -36,7 +36,7 @@ function createCacheableConfiguration (hash: string): ChargingStationConfigurati automaticTransactionGenerator: { enable: false, maxDuration: 120, minDuration: 60 }, configurationHash: hash, configurationKey: [ - { key: OCPP16StandardParametersKey.HeartbeatInterval, readonly: false, value: '60' }, + { key: StandardParametersKey.HeartbeatInterval, readonly: false, value: '60' }, ], stationInfo: { chargingStationId: 'test-station' }, } as unknown as ChargingStationConfiguration