]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(tests): move ocppVersion inside stationInfo in auth mock factory
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 17:44:35 +0000 (18:44 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 17:44:35 +0000 (18:44 +0100)
commitad1826d32dc139997a4b4b40b77aecbe2e0287e5
treeebdb86f937837dc315e0253157a5e1e217fe86f9
parent7bd734261cb86ceee70acf87146ec25ffdec072c
fix(tests): move ocppVersion inside stationInfo in auth mock factory

The mock factory was placing ocppVersion at the root level of the mock
ChargingStation, but AuthComponentFactory.createAdapters() looks for
chargingStation.stationInfo?.ocppVersion, causing all auth service tests
to fail with 'OCPP version not found in charging station' error.
tests/charging-station/ocpp/auth/helpers/MockFactories.ts