]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test(charging-station): complete Wave 2 - boot notification and configuration tests
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 01:53:32 +0000 (02:53 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 01:53:32 +0000 (02:53 +0100)
commit4b68d5e0e8f08c4f0e32f6aa2bcd04edc6a9f7c7
treee57980cefddf6dfe1c5274938d24e595af082d16
parent291f90538b9b038bbf4b2fd9b3c936d9985dc1de
test(charging-station): complete Wave 2 - boot notification and configuration tests

Task 6 - Boot Notification State (6 tests):
- State query methods: inAcceptedState, inPendingState, inRejectedState, inUnknownState
- State transitions: PENDING → ACCEPTED/REJECTED
- Boot response structure validation

Task 7 - Configuration Persistence (14 tests):
- OCPP config getters: getHeartbeatInterval, getConnectionTimeout, etc.
- Configuration save and persistence verification
- Mock filesystem validation (no real I/O)

Wave 2 Complete: 54 total tests
- Lifecycle: 11 tests
- Connector/EVSE: 22 tests
- Boot Notification: 6 tests
- Configuration: 14 tests

Fixed ESLint errors in test utilities
tests/charging-station/ChargingStation.test.ts
tests/charging-station/ChargingStationTestUtils.ts