SSL-Sniffer/tests/unit/demo.spec.ts
2025-06-28 17:07:53 +00:00

25 lines
613 B
TypeScript

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)
})
})