]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
test(simulator): drop manual test counters from worker broadcast-channel test (#2081)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 13 Aug 2026 20:13:58 +0000 (22:13 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Aug 2026 20:13:58 +0000 (22:13 +0200)
The group-header comments carried hand-maintained (N tests) counters that rot
as tests are added or removed; the test runner already reports the count.
Remove them, keeping the descriptive group headers.

tests/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.test.ts

index 124b1fd098d1b17d0ff94702c91e915ea9dc91de..aa90e11b9f4ac8fd10f83a1fd4bf535dba88ffab 100644 (file)
@@ -104,7 +104,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => {
   })
 
   // ==========================================================================
-  // Group 1: ProcedureNameToBroadCastChannelProcedureNameMapping — 8 new entries (8 tests)
+  // Group 1: ProcedureNameToBroadCastChannelProcedureNameMapping — 8 new entries
   // ==========================================================================
 
   await describe('ProcedureNameToBroadCastChannelProcedureNameMapping OCPP 2.0.1 entries', async () => {
@@ -174,7 +174,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => {
   })
 
   // ==========================================================================
-  // Group 2: commandResponseToResponseStatus — 4 new command response cases (18 tests)
+  // Group 2: commandResponseToResponseStatus — 4 new command response cases
   // ==========================================================================
 
   await describe('commandResponseToResponseStatus OCPP 2.0.1 commands', async () => {
@@ -516,7 +516,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => {
   })
 
   // ==========================================================================
-  // Group 3: CHANGE_CONFIGURATION — status collapse + worker handler (9 tests)
+  // Group 3: CHANGE_CONFIGURATION — status collapse + worker handler
   // The status-collapse tests guard the acceptedStatusCommands entry: without it,
   // even ACCEPTED would fall through to the FAILURE default.
   // ==========================================================================
@@ -612,7 +612,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => {
   })
 
   // ==========================================================================
-  // Group 4: commandHandler dispatch pipeline — verify full dispatch (9 tests)
+  // Group 4: commandHandler dispatch pipeline — verify full dispatch
   // ==========================================================================
 
   await describe('commandHandler OCPP 2.0.1 dispatch pipeline', async () => {
@@ -729,7 +729,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => {
   })
 
   // ==========================================================================
-  // Group 5: requestHandler full pipeline — exercise handler dispatch via message events (6 tests)
+  // Group 5: requestHandler full pipeline — exercise handler dispatch via message events
   // ==========================================================================
 
   await describe('requestHandler full pipeline OCPP 2.0.1', async () => {