]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): restructure TEST_STYLE_GUIDE and use centralized constants
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 22:39:20 +0000 (23:39 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 22:39:20 +0000 (23:39 +0100)
commitb12eb5bdbe95cbc9d7a3b157f2464e3cb4a322e1
treebc217485bb325a4a55ee15febe88f8e4d2a1339c
parent0fddd043d8aec5b8a99977c0d056c7d7fa85a489
refactor(tests): restructure TEST_STYLE_GUIDE and use centralized constants

- Rewrite TEST_STYLE_GUIDE.md: 691 → 295 lines, logical sections, no redundancy
- Fix toBeTruthy() → toBeDefined() for strict assertions
- Add test constants (TEST_ID_TAG, TEST_TRANSACTION_ID, TEST_TRANSACTION_ENERGY_WH)
- Update test files to use centralized constants instead of inline values
tests/TEST_STYLE_GUIDE.md
tests/charging-station/ChargingStation-Transactions.test.ts
tests/charging-station/ChargingStation.test.ts
tests/charging-station/ChargingStationTestConstants.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStartTransaction.test.ts