]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): harmonize UI server tests with codebase style
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 19:24:51 +0000 (20:24 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 19:24:51 +0000 (20:24 +0100)
commit9cc9864ed9e6014a6cc678f1c5b55fa1012c79eb
tree6901afa82f7687ad0f534a86598f7151f0d31a05
parent6abbf542c66ffe2f9461e5a66c18476d8b2b8389
refactor(tests): harmonize UI server tests with codebase style

- Add helper functions to reduce duplication (createHttpServerConfig, createLargePayload)
- Add waitForStreamFlush() utility for async stream tests
- Add GZIP_STREAM_FLUSH_DELAY_MS constant with documentation
- Remove low-value constant assertion tests
- Add edge case tests for compression boundary and context cleanup
- Harmonize test names to 'Verify X' style
- Use Reflect.get() instead of unsafe double cast
- Replace eslint-disable with proper guard pattern
tests/charging-station/ui-server/UIHttpServer.test.ts
tests/charging-station/ui-server/UIServerSecurity.test.ts
tests/charging-station/ui-server/UIServerTestConstants.ts
tests/charging-station/ui-server/UIServerTestUtils.ts