]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): migrate inline mock stations to shared factory
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 20:49:24 +0000 (22:49 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 20:49:24 +0000 (22:49 +0200)
commit1584ca620dadbb3ceff1bbad7a514bc7bb5970c3
treedb8a2d2858ead6951935d1473b4362f9ee68ec84
parentbe2949ef748ec51c3837d5247fc53d769e9e5147
refactor(tests): migrate inline mock stations to shared factory

Replace inline as-unknown-as ChargingStation casts in
CertificateAuthStrategy and OCPP20AuthAdapter tests with
createMockAuthServiceTestStation factory. Add inAcceptedState
method to the shared auth test station factory.
tests/charging-station/ocpp/auth/helpers/MockFactories.ts
tests/charging-station/ocpp/auth/strategies/CertificateAuthStrategy.test.ts