From: Jérôme Benoit Date: Fri, 27 Feb 2026 20:45:03 +0000 (+0100) Subject: fix(tests): fix wrong constant name imports in GetVariables and SetVariables tests X-Git-Tag: ocpp-server@v3.0.0~100 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=10e84267757a71ca11876063c97344ca56345f81;p=e-mobility-charging-stations-simulator.git fix(tests): fix wrong constant name imports in GetVariables and SetVariables tests --- diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts index 7465424b..0f544972 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts @@ -24,7 +24,7 @@ import { Constants } from '../../../../src/utils/index.js' import { createChargingStation } from '../../../ChargingStationFactory.js' import { TEST_CHARGING_STATION_BASE_NAME, - TEST_CONNECTOR_VALID_INSTANCE, + TEST_CONNECTOR_ID_VALID_INSTANCE, } from '../../ChargingStationTestConstants.js' import { resetLimits, @@ -172,8 +172,7 @@ await describe('B06 - Get Variables', async () => { getVariableData: [ { component: { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - instance: TEST_CONNECTOR_VALID_INSTANCE, + instance: TEST_CONNECTOR_ID_VALID_INSTANCE, name: OCPP20ComponentName.Connector, }, variable: { name: OCPP20RequiredVariableName.AuthorizeRemoteStart }, diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts index 87389ee7..f5ccfb6b 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts @@ -28,7 +28,7 @@ import { Constants } from '../../../../src/utils/index.js' import { createChargingStation } from '../../../ChargingStationFactory.js' import { TEST_CHARGING_STATION_BASE_NAME, - TEST_CONNECTOR_VALID_INSTANCE, + TEST_CONNECTOR_ID_VALID_INSTANCE, } from '../../ChargingStationTestConstants.js' import { resetLimits, @@ -162,8 +162,7 @@ await describe('B05 - Set Variables', async () => { { attributeValue: 'true', component: { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - instance: TEST_CONNECTOR_VALID_INSTANCE, + instance: TEST_CONNECTOR_ID_VALID_INSTANCE, name: OCPP20ComponentName.Connector, }, variable: { name: OCPP20RequiredVariableName.AuthorizeRemoteStart },