From 1c3e3e9beb79ba25ac9dedf49934b7a3981c94b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 19 Mar 2026 16:18:42 +0100 Subject: [PATCH] fix: merge duplicate type imports from same barrel module 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 | 6 ++++-- .../2.0/OCPP20IncomingRequestService-MasterPass.test.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts b/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts index 9cbc5a75..825e16e7 100644 --- a/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts +++ b/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts @@ -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, diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts index cc16925b..76091535 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts @@ -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' -- 2.43.0