From 6a1c87c1daa3ba8efc935eb4e05362965a288f2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 1 Mar 2026 02:42:59 +0100 Subject: [PATCH] refactor(test): remove more implementation history from comments --- tests/charging-station/ChargingStation.test.ts | 2 +- .../ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts | 4 ++-- tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/charging-station/ChargingStation.test.ts b/tests/charging-station/ChargingStation.test.ts index 9f86f080..d1c0b685 100644 --- a/tests/charging-station/ChargingStation.test.ts +++ b/tests/charging-station/ChargingStation.test.ts @@ -2,7 +2,7 @@ * @file ChargingStation Integration Tests * @description Integration test suite that verifies all ChargingStation test modules work together. * - * Domain-specific tests have been split into separate files: + * Related domain-specific test files: * - ChargingStation-Lifecycle.test.ts: start/stop/restart operations * - ChargingStation-Connectors.test.ts: connector and EVSE operations, reservations * - ChargingStation-Transactions.test.ts: transaction handling and energy meters diff --git a/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts b/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts index 6bb7d539..d15bbdac 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts @@ -1,8 +1,8 @@ /** * @file Tests for OCPP20ServiceUtils TransactionEvent - * @description Consolidated unit tests for OCPP 2.0 TransactionEvent building and trigger reasons (E01-E04) + * @description Unit tests for OCPP 2.0 TransactionEvent building and trigger reasons (E01-E04) * - * This file consolidates tests from multiple variant files: + * Covers: * - E01-E04 core TransactionEvent implementation * - E02 Cable-First flow (cable plug event sequencing) * - E03 IdToken-First flow (idToken presence in events) diff --git a/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts b/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts index 9ce6b990..4e308168 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts @@ -638,9 +638,8 @@ export interface MockCertificateManagerOptions { /** * Create a mock certificate manager for OCPP 2.0 certificate operation testing. * - * This unified factory consolidates the previously duplicated createMockCertificateManager - * functions from DeleteCertificate, InstallCertificate, CertificateSigned, and - * GetInstalledCertificateIds test files. + * Configurable mock for DeleteCertificate, InstallCertificate, CertificateSigned, + * and GetInstalledCertificateIds operations. * @param options - Configuration options for mock behavior * @returns Mock certificate manager with configurable behavior * @example -- 2.43.0