]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): consolidate MockUIService classes and remove redundant subclass
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 21:16:52 +0000 (22:16 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 21:16:52 +0000 (22:16 +0100)
commit838a2ca01f1fcc1d25aa944179da4a5150e1ce7b
treeefab953996cb5d48a52bad352cd4a808f37c14b4
parentfeb28b4aeebf1a460ac9bd4fe25506eb5b9fd31a
refactor(tests): consolidate MockUIService classes and remove redundant subclass

- Replace MockUIServiceBroadcast, MockUIServiceError, MockUIServiceNonBroadcast
  with single createMockUIService(MockUIServiceMode) factory
- Remove redundant MockWebSocket subclass from UIServerTestUtils.ts
- Re-export createUIProtocolMock as createMockUIWebSocket for UI testing
- Update UIWebSocketServer.test.ts to use new factories
tests/charging-station/ui-server/UIServerTestUtils.ts
tests/charging-station/ui-server/UIWebSocketServer.test.ts