Fixed unit test, circular dep
MODIFY
src/client/ocpp/json/JsonRestChargingStationClient.ts
src/client/ocpp/json/JsonRestChargingStationClient.ts
@@ -152,7 +152,7 @@ export default class JsonRestChargingStationClient extends ChargingStationClient
action: ServerAction.WS_REST_CLIENT_CONNECTION_ERROR,
module: MODULE_NAME, method: 'onError',
message: `Connection error to '${this.serverURL}: ${error.toString()}`,
- detailedMessages: { error }
+ detailedMessages: { error: error.message, stack: error.stack }
});
// Terminate WS in error
this.terminateConnection();

MODIFY
test/api/TestUtils.ts
test/api/TestUtils.ts
+import Constants from "../../src/utils/Constants";
+
export default class TestUtils {
static async sleep(ms) {
return await new Promise((resolve) => setTimeout(resolve, ms));

Fixed unit test, circular dep