]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix(tests): use version-agnostic StandardParametersKey
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 15:17:43 +0000 (17:17 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 15:17:43 +0000 (17:17 +0200)
Replace OCPP16StandardParametersKey import in common test
with version-agnostic StandardParametersKey union type.

tests/charging-station/SharedLRUCache.test.ts

index e81c36eee5ee8c5f65525b6e54655ae88fd7224f..e5465df5cf2c0b0a283adc777f82c17617fb82c6 100644 (file)
@@ -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