From: Jérôme Benoit Date: Thu, 19 Mar 2026 15:18:42 +0000 (+0100) Subject: fix: merge duplicate type imports from same barrel module X-Git-Tag: ocpp-server@v3.2.0~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1c3e3e9beb79ba25ac9dedf49934b7a3981c94b7;p=e-mobility-charging-stations-simulator.git 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. --- 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'