mirror of
https://github.com/wireadmin/wireadmin
synced 2025-01-23 12:27:00 +00:00
19 lines
469 B
TypeScript
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);
|
|
});
|
|
});
|