wireadmin/web/tests/network.test.ts
Shahrad Elahi 0dc9e89b6c fix
2023-12-22 00:34:07 +03:30

19 lines
469 B
TypeScript

import Network from '$lib/network';
describe('Network', () => {
it('should return default interface', async () => {
const inet = await Network.defaultInterface();
console.log(inet);
});
it('should return in use ports', async () => {
const ports = await Network.inUsePorts();
console.log(ports);
});
it('should check interface exists', async () => {
const exists = await Network.interfaceExists('lo');
console.log(exists);
});
});