]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix: merge duplicate type imports from same barrel module
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 15:18:42 +0000 (16:18 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 15:18:42 +0000 (16:18 +0100)
Consolidate split import type statements from types/index.js into
single imports in OCPP16TestUtils.ts and OCPP20IncomingRequestService-
MasterPass.test.ts.

tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts

index 9cbc5a752abb4620838a489bc19a7bfd43ed7ffc..825e16e7c9a33be90c6026e5651585b198c9835c 100644 (file)
@@ -7,15 +7,17 @@
 import { mock } from 'node:test'
 
 import type { ChargingStation } from '../../../../src/charging-station/index.js'
-import type { ChargingStationInfo, ConfigurationKey } from '../../../../src/types/index.js'
 import type {
+  ChargingStationInfo,
+  ConfigurationKey,
   IncomingRequestCommand,
+  JsonObject,
   OCPP16ChargingProfile,
   OCPP16ChargingSchedulePeriod,
   OCPP16SampledValue,
   RequestCommand,
+  SampledValueTemplate,
 } from '../../../../src/types/index.js'
-import type { JsonObject, SampledValueTemplate } from '../../../../src/types/index.js'
 
 import {
   createTestableIncomingRequestService,
index cc16925ba8610edc0ac1610603c22663e834443d..7609153578644fbab35dbda808b56cb58c072df6 100644 (file)
@@ -6,8 +6,10 @@ import assert from 'node:assert/strict'
 import { afterEach, beforeEach, describe, it, mock } from 'node:test'
 
 import type { ChargingStation } from '../../../../src/charging-station/index.js'
-import type { OCPP20RequestStartTransactionRequest } from '../../../../src/types/index.js'
-import type { OCPP20GetVariableDataType } from '../../../../src/types/index.js'
+import type {
+  OCPP20GetVariableDataType,
+  OCPP20RequestStartTransactionRequest,
+} from '../../../../src/types/index.js'
 
 import { createTestableIncomingRequestService } from '../../../../src/charging-station/ocpp/2.0/__testable__/index.js'
 import { OCPP20IncomingRequestService } from '../../../../src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.js'