]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): add testable interface to eliminate eslint-disable comments
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 22:31:29 +0000 (23:31 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 22:31:29 +0000 (23:31 +0100)
commit00051db475ef42a203c653b5de29a3d327623073
treeb15f2d852c2b3ac140b2184d394d21874ce5d114
parentc1b95df9c3f15e669d0567aef94afcf1e17ded30
refactor(tests): add testable interface to eliminate eslint-disable comments

- Add TestableOCPP20RequestService interface and factory function
- Remove file-level eslint-disable from 3 OCPP20RequestService test files
- Use type assertions instead of generic type parameters for type safety
- Follows TEST_STYLE_GUIDE.md recommendation for testable interfaces
tests/charging-station/ocpp/2.0/OCPP20RequestService-BootNotification.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-HeartBeat.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-StatusNotification.test.ts
tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts