Skip to content

Commit

Permalink
fix(modbus): fix modbus after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerni10 committed Jan 6, 2025
1 parent 452f503 commit e161e37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/south/south-modbus/south-modbus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ class CustomStream extends Stream {
}

connect(_connectionObject: any, _callback: any) {}

end() {}
}
repositoryService.southConnectorRepository.getSouthConnector = jest.fn().mockReturnValue(configuration);
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit e161e37

Please sign in to comment.