]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
docs(tests): add file-level JSDoc to test files
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 16:39:10 +0000 (17:39 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 16:39:10 +0000 (17:39 +0100)
Add @file and @description JSDoc comments to all 58 test files
that were missing file-level documentation. Each JSDoc identifies
the module under test and provides a brief description of the
test coverage scope.

58 files changed:
tests/ChargingStationFactory.test.ts
tests/charging-station/ChargingStation.test.ts
tests/charging-station/ConfigurationKeyUtils.test.ts
tests/charging-station/Helpers.test.ts
tests/charging-station/ocpp/2.0/OCPP20CertificateManager.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CertificateSigned.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ClearCache.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DeleteCertificate.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetBaseReport.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetInstalledCertificateIds.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-InstallCertificate.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RemoteStartAuth.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStartTransaction.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-Reset.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-BootNotification.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-HeartBeat.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-ISO15118.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-NotifyReport.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-SignCertificate.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-StatusNotification.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent-CableFirst.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent-IdTokenFirst.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent-Offline.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent-Periodic.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts
tests/charging-station/ocpp/2.0/OCPP20VariableManager.test.ts
tests/charging-station/ocpp/auth/OCPPAuthIntegration.test.ts
tests/charging-station/ocpp/auth/adapters/OCPP16AuthAdapter.test.ts
tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.offline.test.ts
tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.test.ts
tests/charging-station/ocpp/auth/cache/InMemoryAuthCache.test.ts
tests/charging-station/ocpp/auth/factories/AuthComponentFactory.test.ts
tests/charging-station/ocpp/auth/services/OCPPAuthServiceFactory.test.ts
tests/charging-station/ocpp/auth/services/OCPPAuthServiceImpl.test.ts
tests/charging-station/ocpp/auth/strategies/CertificateAuthStrategy.test.ts
tests/charging-station/ocpp/auth/strategies/LocalAuthStrategy.test.ts
tests/charging-station/ocpp/auth/strategies/RemoteAuthStrategy.test.ts
tests/charging-station/ocpp/auth/types/AuthTypes.test.ts
tests/charging-station/ocpp/auth/utils/AuthHelpers.test.ts
tests/charging-station/ocpp/auth/utils/AuthValidators.test.ts
tests/charging-station/ocpp/auth/utils/ConfigValidator.test.ts
tests/charging-station/ui-server/UIHttpServer.test.ts
tests/charging-station/ui-server/UIServerSecurity.test.ts
tests/charging-station/ui-server/UIWebSocketServer.test.ts
tests/charging-station/ui-server/ui-services/AbstractUIService.test.ts
tests/exception/BaseError.test.ts
tests/exception/OCPPError.test.ts
tests/types/ConfigurationData.test.ts
tests/utils/AsyncLock.test.ts
tests/utils/ConfigurationUtils.test.ts
tests/utils/ElectricUtils.test.ts
tests/utils/ErrorUtils.test.ts
tests/utils/StatisticUtils.test.ts
tests/utils/Utils.test.ts
tests/worker/WorkerUtils.test.ts

index a3080dd1d0e2344a34d7775869c98bd218b728ca..b3b380905f6931d9858aee588b1f544c448f60e2 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for ChargingStationFactory
+ * @description Unit tests for charging station factory utilities and OCPP service mocking
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index d87fae2db4704d617d93a1d57cc36c6c1a97cabc..4792a72e369cb6160b536939e3d985d0d9378ebc 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for ChargingStation
+ * @description Unit tests for charging station lifecycle, state management, and connector operations
+ */
 import { expect } from '@std/expect'
 import { afterEach, describe, it } from 'node:test'
 
index f15720993396c91c649d861e98e53f87edb5ba3c..7c9474d86730bb25d25beb4e01cef1b15114ab30 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for ConfigurationKeyUtils
+ * @description Unit tests for OCPP configuration key management utilities
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 26057bc69c629de134c5690db22e797c3f815552..f76e1c36fed30415a123091135bbe9b941b38920 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for Helpers
+ * @description Unit tests for charging station helper functions and utilities
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 
 import { expect } from '@std/expect'
index 2174c3003eecbefb8b4357840c35b7ac034863bf..701dab7d7aeed994331a7bcac9b3b899e66c3b66 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20CertificateManager
+ * @description Unit tests for OCPP 2.0 certificate management and validation
+ */
 /* eslint-disable @typescript-eslint/no-explicit-any */
 
 import { expect } from '@std/expect'
index 16e97431999ade8daecf3af846e00d9fcdf4d04f..8288297d3c747dd6a91e59b7c336b32e745e2326 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService CertificateSigned
+ * @description Unit tests for OCPP 2.0 CertificateSigned command handling
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 539532544d795da3fbab38adc2c5f9def8a7fd84..86edbab7e06cce4dba8867dbba4024f0afcea53d 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService ClearCache
+ * @description Unit tests for OCPP 2.0 ClearCache command handling (C11)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index a10d3377bfbfc5b4ef17beb31cd04cc3dfdafa62..2cbba94c7cabcb74f332b89927294836c0de7581 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService DeleteCertificate
+ * @description Unit tests for OCPP 2.0 DeleteCertificate command handling
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 4b18e7b6acf67ac743a7ab38a017411405786575..6626981d95d3d83d93a742564a0c1114ced93abe 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService GetBaseReport
+ * @description Unit tests for OCPP 2.0 GetBaseReport command handling (B07)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 3e0ec0810277c9a376c66ece7974f0c0afe0589a..fc8e5954f4f0f4f14fe8940cde7561a98578c118 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService GetInstalledCertificateIds
+ * @description Unit tests for OCPP 2.0 GetInstalledCertificateIds command handling
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index e1fa95b4561b360f9d4dcf589c97dff327c53177..296be18b2aa4b0d2df3b2c7ec410e0add7d8101a 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService GetVariables
+ * @description Unit tests for OCPP 2.0 GetVariables command handling (B06)
+ */
 import { expect } from '@std/expect'
 import { millisecondsToSeconds } from 'date-fns'
 import { describe, it } from 'node:test'
index 4877e9ae69860b4a8395f1bc5b2d57951f7ebdc6..d6e841dfb9b5f2f0342a7244c4c1e8a7076ebc66 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService InstallCertificate
+ * @description Unit tests for OCPP 2.0 InstallCertificate command handling
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index b66c93d3d446447b888677e0318e397154793eaa..bc82ba994e93c236cf4ed8c6a993f380b6899305 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService RemoteStartAuth
+ * @description Unit tests for OCPP 2.0 remote start pre-authorization (G03.FR.03)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 
 /* eslint-disable @typescript-eslint/no-explicit-any */
index 4b5e808c10288ede6c28f104cb628e7a4f4fe205..9caf893f05be031beaa48d2ba9017131b95ac1fc 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService RequestStartTransaction
+ * @description Unit tests for OCPP 2.0 RequestStartTransaction command handling (F01/F02)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 30679cfd3f8abbd592e2ca75d7718fcc63ccc091..b0fe70a1e09dbbabd31c5e8d46908de29d33bfcc 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService RequestStopTransaction
+ * @description Unit tests for OCPP 2.0 RequestStopTransaction command handling (F03)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index dcb233ccd3f52f7c21de563a2c2ff5a6c4aef102..4b69942e9dea75bef7c2976e843f6f08748b53df 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService Reset
+ * @description Unit tests for OCPP 2.0 Reset command handling (B11/B12)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 0f0c8bbaf6a1547e061fe85a09a61fa0c5352e3b..f739bb70f521ed67ef721464139e526133c3b3e0 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20IncomingRequestService SetVariables
+ * @description Unit tests for OCPP 2.0 SetVariables command handling
+ */
 /* eslint-disable @typescript-eslint/no-explicit-any */
 
 import { expect } from '@std/expect'
index 385a41935adcc18b732357719ac4fbf1efe75e38..827c98bc178c26104b518c2505445bb747199faf 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20RequestService BootNotification
+ * @description Unit tests for OCPP 2.0 BootNotification request building (B01)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index d1a87c96cc57e9492dc34086dc1a02602aaff503..79e0ba2b4c74dbfbb4f4e57e804a18f670e90cca 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20RequestService HeartBeat
+ * @description Unit tests for OCPP 2.0 Heartbeat request building (G02)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index b6d3d0bdfb249e47a3e2bb64c87ed0d81b1caced..63589ef93673e8a136d996282cc5517b56f22920 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20RequestService ISO15118
+ * @description Unit tests for OCPP 2.0 ISO 15118 certificate and EV communication
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 5c7af8f1cdb096bbadac94617539f6ef98492102..6d274d5a01a2e0ea776179a0efa07d27e0ac1f08 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20RequestService NotifyReport
+ * @description Unit tests for OCPP 2.0 NotifyReport request building (B07/B08)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index bda7d1ef1534be33b0672ae170209df3eb627ece..ed8c76efac046b64738e744bab75c855e4dc12f2 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20RequestService SignCertificate
+ * @description Unit tests for OCPP 2.0 SignCertificate request building
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 35210bfb752a134d40fdee6c74bd51af15abbd1b..6ac27aa93c8f77470ff6f6978cc0f130a9f0fa66 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20RequestService StatusNotification
+ * @description Unit tests for OCPP 2.0 StatusNotification request building (G01)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index dae0db1fd514bc40eb3302a0b11c631f2c5a7580..4184eaadc33cfd59ff12bc402d9b7133aa1b018d 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20ServiceUtils TransactionEvent CableFirst
+ * @description Unit tests for OCPP 2.0 cable-first transaction flow (E02)
+ */
 import { expect } from '@std/expect'
 import { afterEach, describe, it } from 'node:test'
 
index 00fa1c2a912424a7d5344c2731ccb225840997e0..a2eb73e159e027ff21bfe55d715da05b548d90ac 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20ServiceUtils TransactionEvent IdTokenFirst
+ * @description Unit tests for OCPP 2.0 IdToken-first pre-authorization flow (E03)
+ */
 import { expect } from '@std/expect'
 import { afterEach, describe, it } from 'node:test'
 
index e7088174cd8e368c909be6d6a9b30a8998a0ea10..8dbdfb9153194db91463c082b2214267708eeb23 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20ServiceUtils TransactionEvent Offline
+ * @description Unit tests for OCPP 2.0 offline TransactionEvent queueing (E02)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-argument */
index f071327235a0ee8ae76edafb80ddbe78f10730e8..2404d4cef5300d16055966cb4ffbcab65517fcc9 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20ServiceUtils TransactionEvent Periodic
+ * @description Unit tests for OCPP 2.0 periodic TransactionEvent at TxUpdatedInterval (E02)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-argument */
index 85b69984289a3f009f6922ed7386f01b7ead3186..2a121271d3c42d197e32dea3f16eb8ad85682e25 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20ServiceUtils TransactionEvent
+ * @description Unit tests for OCPP 2.0 TransactionEvent building and trigger reasons (E01-E04)
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 
index da53b9a73531f149d6758f7aeee2862698f9f05f..d52ac64304229d34474628561f4452419fa899af 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20VariableManager
+ * @description Unit tests for OCPP 2.0 variable management and device model
+ */
 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
 /* eslint-disable @typescript-eslint/no-unsafe-call */
index 362616a76f834751d748153471f9090250955488..c1340d55c035cf60ec1a14d7a43f592a863a1096 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPPAuthIntegration
+ * @description Integration tests for OCPP authentication across versions 1.6 and 2.0
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 0819b9a6c3fbc06c3d317ab7a09506daebb6e400..419411f735ac3b9a772b510586fc9a0a4b74ddae 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP16AuthAdapter
+ * @description Unit tests for OCPP 1.6 authentication adapter
+ */
 import { expect } from '@std/expect'
 import { afterEach, beforeEach, describe, it } from 'node:test'
 
index 9a04c66ede31fb7baf1b61ac987f3c8355fc1204..ec0dfd6d7064525562e28a563ae175449237b279 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20AuthAdapter Offline
+ * @description Unit tests for OCPP 2.0 offline authorization scenarios (G03.FR.02)
+ */
 /**
  * G03.FR.02 - OCPP 2.0 Offline Authorization Tests
  *
index 9c65be9600bda65c6b422b57332bb0b027f38223..5c3b0e02b253b0d9d579bdea37e8279fbab1c670 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPP20AuthAdapter
+ * @description Unit tests for OCPP 2.0 authentication adapter
+ */
 import { expect } from '@std/expect'
 import { afterEach, beforeEach, describe, it } from 'node:test'
 
index 7402192bf08651dd7c75321e080e5c6c6175afc5..75e6ad101ebe0affea24099b260fc1bef986cb58 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for InMemoryAuthCache
+ * @description Unit tests for in-memory authorization cache conformance (G03.FR.01)
+ */
 import { expect } from '@std/expect'
 import { afterEach, beforeEach, describe, it } from 'node:test'
 
index 99f5989baf364390c635bf54449368540cbe7e27..f49e2869f7d42b626049ac7c79e8ca65fcb2497f 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for AuthComponentFactory
+ * @description Unit tests for authentication component factory
+ */
 /* eslint-disable @typescript-eslint/no-confusing-void-expression */
 import { expect } from '@std/expect'
 import { afterEach, describe, it } from 'node:test'
index 4f356cb7520fabbeff7290de5bb97aa048c2cdd7..8efc4123d49daabc7dda517eba0e17e74cd50eb1 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPPAuthServiceFactory
+ * @description Unit tests for OCPP authentication service factory
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index dc7a4e72aaac0e31775fc0cabd3bfed256ca6e8f..48b1e4e2d9570700d67b493f4e884cc9ac914e41 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPPAuthServiceImpl
+ * @description Unit tests for OCPP authentication service implementation
+ */
 import { expect } from '@std/expect'
 import { afterEach, describe, it } from 'node:test'
 
index fec4c91896bed148852654581bdafaae19023cd2..50ca4ddc3ab8ef0472db9fedd1ddb94a74044668 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for CertificateAuthStrategy
+ * @description Unit tests for certificate-based authentication strategy
+ */
 import { expect } from '@std/expect'
 import { afterEach, beforeEach, describe, it } from 'node:test'
 
index fd2eee254394bebf221d4a5a1d40dd2545e89a91..04f8c0d207076b026606997068485d88b592d3cf 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for LocalAuthStrategy
+ * @description Unit tests for local authorization strategy (cache and local list)
+ */
 import { expect } from '@std/expect'
 import { afterEach, beforeEach, describe, it } from 'node:test'
 
index d0492b056eb4cc1db7fe54e9e1e2ae57fb4f51be..b1d6002c861eec449bb8c3b690924d4650777ea3 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for RemoteAuthStrategy
+ * @description Unit tests for remote (CSMS) authorization strategy
+ */
 import { expect } from '@std/expect'
 import { afterEach, beforeEach, describe, it } from 'node:test'
 
index 7a25990a0b0ea94af642e10e4902b4faf5be600f..b8661050070b49e9d84472bb7a33cbf46dd5b192 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for AuthTypes
+ * @description Unit tests for authentication type definitions and mappings
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 728d4104bf836af14bba15512c04cfdb91163bc9..c4d4a84988b3044b2cd73daf4c2bb3a470a4a30b 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for AuthHelpers
+ * @description Unit tests for authentication helper utilities
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 6484e61bc0a661c6980f7c562673a613334dfb5f..0b39ba034e111bf3f8b43770c1502af58455d018 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for AuthValidators
+ * @description Unit tests for authentication validation utilities
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 36048f50848be43bb8468d0801e11847d7f13588..1dd09d880be37599024789b1484b479d7f7ee7d3 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for AuthConfigValidator
+ * @description Unit tests for authentication configuration validation
+ */
 // Copyright Jerome Benoit. 2021-2025. All Rights Reserved.
 
 import { expect } from '@std/expect'
index f1f8ee7321294377b8f364603bcf4bc53e580c01..e064b489041e4fddece5e083455ebbf3019e6ea7 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for UIHttpServer
+ * @description Unit tests for HTTP-based UI server and response handling
+ */
 // Copyright Jerome Benoit. 2024-2025. All Rights Reserved.
 
 import { expect } from '@std/expect'
index 42d8d5742d1dfc4f735d45d12b33befe43a0f4fa..7cd64e6fb5f945f6745377469f2fd73da47ec3bf 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for UIServerSecurity
+ * @description Unit tests for UI server security utilities (rate limiting, validation)
+ */
 // Copyright Jerome Benoit. 2024-2025. All Rights Reserved.
 
 import { expect } from '@std/expect'
index 09e8ed5c926d1d127489cd3e4b179f458183a69a..11cfd8c9ae417c7bb7dc560b51760373d2cf9a61 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for UIWebSocketServer
+ * @description Unit tests for WebSocket-based UI server and response handling
+ */
 // Copyright Jerome Benoit. 2024-2025. All Rights Reserved.
 
 import { expect } from '@std/expect'
index 8fe5973681a81f5f7ef67be4501940398dd39968..5aef755fc3b3e150a2b63bb8723f13954ceb393f 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for AbstractUIService
+ * @description Unit tests for abstract UI service base class functionality
+ */
 // Copyright Jerome Benoit. 2024-2025. All Rights Reserved.
 
 import { expect } from '@std/expect'
index f18aff162589fa6adcfe2e6a9300a687cfe11210..1a341ac725aba4e5d2dd5112feb2931da7cf4237 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for BaseError
+ * @description Unit tests for base error class functionality
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 6ae6180dbb797e5b07f3bb8334832608308c0748..8145b5cf75183a6c4756ddc3537c47e44ffbfb50 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for OCPPError
+ * @description Unit tests for OCPP-specific error class
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 9983808e16ab377ddfc23ec7362e9006713e8bd9..6f6b704a9ec92a65158ac29e7dd86bcab67d1418 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for ConfigurationData
+ * @description Unit tests for configuration data types and enumerations
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index dcdd8b0a5767b9dbc1d82802b79e69517b981d88..586462896066bf7cfc35527c32df6e3855459cd2 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for AsyncLock
+ * @description Unit tests for asynchronous lock utilities
+ */
 import { expect } from '@std/expect'
 import { randomInt } from 'node:crypto'
 import { describe, it } from 'node:test'
index 73a4d087bde912f71b00088fffeeb4e9cf2622b1..30e6015efe72a0412749757a451bc75997a1dd8e 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for ConfigurationUtils
+ * @description Unit tests for configuration utility functions
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index b8e47406268969d83c6def1cab0e3876d595bf94..9ebf495a7e9aa434190c996a112de6c770ac552c 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for ElectricUtils
+ * @description Unit tests for electrical calculations (AC/DC power, amperage)
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 09df6a30033e3a106e3929f89443815494da913d..85682bb739566abf8755f463d748efaa7e420857 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for ErrorUtils
+ * @description Unit tests for error handling utilities
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 95419fb1ddc165b2bc0a337ba760244a1a182cfc..d578bc9c42fb0c6febef7cd2d03bca14f5b867e2 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for StatisticUtils
+ * @description Unit tests for statistical calculation utilities
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'
 
index 1abbd5bdc24ebeb628fdfcf66aa36b30782430c6..4d91042fc9699dc0ea74ff9bcbe8b2b032ad17ea 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for Utils
+ * @description Unit tests for general utility functions
+ */
 import { expect } from '@std/expect'
 import { hoursToMilliseconds, hoursToSeconds } from 'date-fns'
 import { CircularBuffer } from 'mnemonist'
index b0297914bfd2e21aabbae0a66e74ac1d02f76cc1..9ff800588c05832e984530a2c3aafdb223d275cf 100644 (file)
@@ -1,3 +1,7 @@
+/**
+ * @file Tests for WorkerUtils
+ * @description Unit tests for worker process utility functions
+ */
 import { expect } from '@std/expect'
 import { describe, it } from 'node:test'