]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): use union types instead of stack-specific types in common tests
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 12:20:30 +0000 (13:20 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 12:20:30 +0000 (13:20 +0100)
commitb994f09525f85f2d0d54f4b15c39bdd6990895d7
treebb9db8cbf2ea4ca04bdf78b9c8b3a2f7c639b530
parent0f05c92e8ac1f7420bea9c6dfb435269df1367fe
refactor(tests): use union types instead of stack-specific types in common tests

Replace OCPP16RequestCommand → RequestCommand,
OCPP16IncomingRequestCommand → IncomingRequestCommand, and
OCPP20RequestCommand → RequestCommand in test files outside
stack-specific directories. Remove redundant 'as Type' casts
that were bridging the gap.
tests/charging-station/ChargingStation-Resilience.test.ts
tests/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.test.ts
tests/charging-station/ocpp/OCPPServiceUtils-validation.test.ts