From e161e373992dc4233adc9a23835777483fb20edc Mon Sep 17 00:00:00 2001 From: burgerni10 Date: Mon, 10 Jun 2024 19:29:06 +0200 Subject: [PATCH] fix(modbus): fix modbus after rebase --- backend/src/south/south-modbus/south-modbus.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/south/south-modbus/south-modbus.spec.ts b/backend/src/south/south-modbus/south-modbus.spec.ts index 27af98139e..64f61a17d8 100644 --- a/backend/src/south/south-modbus/south-modbus.spec.ts +++ b/backend/src/south/south-modbus/south-modbus.spec.ts @@ -185,6 +185,7 @@ class CustomStream extends Stream { } connect(_connectionObject: any, _callback: any) {} + end() {} } repositoryService.southConnectorRepository.getSouthConnector = jest.fn().mockReturnValue(configuration); @@ -451,8 +452,10 @@ describe('SouthModbus test connection', () => { } as const; type ErrorCodes = keyof typeof ERROR_CODES; + class ModbusError extends Error { private code: ErrorCodes; + constructor(message: string, code: ErrorCodes) { super(); this.name = 'ModbusError';