Initial Commit

This commit is contained in:
Christian Risi
2025-06-28 17:07:53 +00:00
parent 779367a4b8
commit ddac609b97
36 changed files with 1373 additions and 80 deletions

25
tests/unit/demo.spec.ts Normal file
View File

@@ -0,0 +1,25 @@
import { validateSchema } from '$lib/utils/nginx-utils';
import { portScan } from '$lib/utils/ports-utils';
import { describe, it, expect } from 'vitest';
describe('sum test', () => {
it('adds 1 + 2 to equal 3', () => {
expect(1 + 2).toBe(3);
});
});
describe('port gathering test', () => {
it('gathers ports from terminal', async () => {
const ports = await portScan()
console.log(ports)
expect(ports.size).not.toBe(0)
})
})
describe('nginx validation', () => {
it('validates nginx configurations', async () => {
const validation = await validateSchema()
expect(validation).toBe(true)
})
})