]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): separate handler/listener tests and remove setTimeout hacks
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 17:58:26 +0000 (18:58 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 17:59:00 +0000 (18:59 +0100)
commitb50f9e5f547632af2187d1df351383d1a1222b8f
treefc63e74ae05821f0d2f0bf76a73782207c17e51e
parentd7cee2ecb4388a120e6465675c8faf0680dd5523
refactor(tests): separate handler/listener tests and remove setTimeout hacks

Align TriggerMessage, UpdateFirmware, and GetLog test files with the
RequestStopTransaction reference pattern:
- Split into 'Handler validation' + 'event listener' describe groups
- Replace raw setTimeout delays with withMockTimers where needed
- Use emit() directly for listener tests (no wrapper helpers)
- Follows TEST_STYLE_GUIDE.md conventions
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetLog.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-TriggerMessage.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UpdateFirmware.test.ts