From 5c9daef058ccdccd97db9d1ab7ebb38f7be0165b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 3 Apr 2026 17:17:43 +0200 Subject: [PATCH] fix(tests): use version-agnostic StandardParametersKey Replace OCPP16StandardParametersKey import in common test with version-agnostic StandardParametersKey union type. --- tests/charging-station/SharedLRUCache.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.0