]>
Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
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