runtipi/packages/system-api/__mocks__/tcp-port-used.ts
2022-08-01 18:21:02 +02:00

9 lines
294 B
TypeScript

import portUsed, { TcpPortUsedOptions } from 'tcp-port-used';
const internalIp: { check: typeof portUsed.check } = jest.genMockFromModule('tcp-port-used');
internalIp.check = async (_: number | TcpPortUsedOptions, __?: string | undefined) => {
return true;
};
module.exports = internalIp;