mirror of
https://github.com/wireadmin/wireadmin
synced 2025-06-26 18:28:06 +00:00
fix
This commit is contained in:
18
web/tests/network.test.ts
Normal file
18
web/tests/network.test.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
8
web/tests/wireguard.test.ts
Normal file
8
web/tests/wireguard.test.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { generateWgKey } from '$lib/wireguard';
|
||||
|
||||
describe('Keys', () => {
|
||||
it('should generate a key', async () => {
|
||||
const keys = await generateWgKey();
|
||||
console.log(keys);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user