]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: align variable naming and remove non-null assertions in tests and UI
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 20:15:44 +0000 (21:15 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 20:15:44 +0000 (21:15 +0100)
commit75cb24c62ff4aad77e77cc3306003454cefa29e9
tree6eb4575e5b0a89b6d092d2f87725af935449636b
parentebe64c903c62b00cecf248f568938ff46400aed1
refactor: align variable naming and remove non-null assertions in tests and UI

Apply the same naming conventions established in src/ to tests/ and ui/:
- connector → connectorStatus for ConnectorStatus values (48 instances)
- Stats → Statistics: heartbeatStats, authStats, rateLimitStats (3)
- Config → Configuration: atgConfig, originalConfig, updatedConfig,
  singleServerConfig, multiServerConfig (7)
- Remove 11 eslint-disable no-non-null-assertion suppressions in
  tests/ and ui/web/src/ with proper null guards
19 files changed:
tests/charging-station/ChargingStation-Connectors.test.ts
tests/charging-station/ocpp/1.6/OCPP16IncomingRequestService-Reset.test.ts
tests/charging-station/ocpp/1.6/OCPP16Integration-Reservations.test.ts
tests/charging-station/ocpp/1.6/OCPP16Integration-Transactions.test.ts
tests/charging-station/ocpp/1.6/OCPP16ResponseService-Transactions.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-Reset.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UnlockConnector.test.ts
tests/charging-station/ocpp/2.0/OCPP20ResponseService-TransactionEvent.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts
tests/charging-station/ocpp/OCPPServiceUtils-StopTransaction.test.ts
tests/charging-station/ocpp/OCPPServiceUtils-connectorStatus.test.ts
tests/helpers/OCPPAuthIntegrationTest.ts
tests/helpers/TestLifecycleHelpers.ts
tests/ocpp2-e2e-test-plan.md [new file with mode: 0644]
tests/utils/ChargingStationConfigurationUtils.test.ts
tests/utils/MessageChannelUtils.test.ts
ui/web/src/composables/UIClient.ts
ui/web/tests/unit/CSConnector.test.ts
ui/web/tests/unit/ChargingStationsView.test.ts