]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test(charging-station): add lifecycle and connector/EVSE state tests (Wave 2)
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 01:40:48 +0000 (02:40 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 01:40:48 +0000 (02:40 +0100)
commit291f90538b9b038bbf4b2fd9b3c936d9985dc1de
tree278eb0fb5b58b3e4e17892f44e8ab6447a6705c0
parent74747d180208ae8a97dd0010e83f34f870a45a6c
test(charging-station): add lifecycle and connector/EVSE state tests (Wave 2)

Task 4 - Lifecycle tests (11 tests):
- start(): initial, idempotent, starting flag
- stop(): normal, idempotent, stopping flag, clears bootNotificationResponse
- Restart after stop
- delete(): stopped station, running station auto-stop
- Concurrent operation guards

Task 5 - Connector/EVSE state tests (22 tests):
- Connector queries: hasConnector, getConnectorStatus, isConnectorAvailable
- Connector 0 (shared power) special behavior
- EVSE mode vs non-EVSE mode configurations
- EVSE queries: getEvseStatus, getEvseIdByConnectorId
- Invalid connector/EVSE ID edge cases

Total: 33 tests, all passing
Fixed ESLint errors in test utilities
tests/charging-station/ChargingStation.test.ts
tests/charging-station/ChargingStationTestConstants.ts [new file with mode: 0644]
tests/charging-station/ChargingStationTestUtils.ts [new file with mode: 0644]