]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(tests): use bodyBuffer for binary gzip data in MockServerResponse
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 19:15:51 +0000 (20:15 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 19:15:51 +0000 (20:15 +0100)
commit6abbf542c66ffe2f9461e5a66c18476d8b2b8389
treef0d0755ca9fbfa2765d66db496d7e033d0924522
parentcf6443ad6822d486d2c98dc08495050e05bdde98
fix(tests): use bodyBuffer for binary gzip data in MockServerResponse

Buffer.from(string, 'binary') loses data on Windows due to encoding
differences. Store raw Buffer directly for binary content like gzip.
tests/charging-station/ui-server/UIHttpServer.test.ts
tests/charging-station/ui-server/UIServerTestUtils.ts