decomment SmartChargingTest
MODIFY
test/api/SmartChargingTest.ts
test/api/SmartChargingTest.ts
@@ -2,6 +2,7 @@ import { ChargePointErrorCode, ChargePointStatus, OCPPStatusNotificationRequest
import { SapSmartChargingSetting, SettingDB, SmartChargingSetting, SmartChargingSettingsType } from '../../src/types/Setting';
import chai, { assert, expect } from 'chai';
+import CPOSessionsEndpoint from '../server/ocpi/ocpi-services-impl/ocpi-2.1.1/CPOSessionsEndpoint';
import CentralServerService from './client/CentralServerService';
import ChargingStationContext from './context/ChargingStationContext';
import Constants from '../../src/utils/Constants';
@@ -9,6 +10,7 @@ import ContextDefinition from './context/ContextDefinition';
import ContextProvider from './context/ContextProvider';
import Cypher from '../../src/utils/Cypher';
import MongoDBStorage from '../../src/storage/mongodb/MongoDBStorage';
+import SapSmartChargingIntegration from '../../src/integration/smart-charging/sap-smart-charging/SapSmartChargingIntegration';
import SiteContext from './context/SiteContext';
import SmartChargingIntegration from '../../src/integration/smart-charging/SmartChargingIntegration';
import TenantContext from './context/TenantContext';
@@ -41,8 +43,8 @@ class TestData {
const sapSmartChargingSettings = TestData.getSmartChargingSettings();
await TestData.saveSmartChargingSettings(testData, sapSmartChargingSettings);
sapSmartChargingSettings.password = Cypher.encrypt(sapSmartChargingSettings.password);
- // smartChargingIntegration = new SapSmartChargingIntegration(testData.tenantContext.getTenant().id, sapSmartChargingSettings);
- // expect(smartChargingIntegration).to.not.be.null;
+ smartChargingIntegration = new SapSmartChargingIntegration(testData.tenantContext.getTenant().id, sapSmartChargingSettings);
+ expect(smartChargingIntegration).to.not.be.null;
}

decomment SmartChargingTest