Resolved failing tests and linter checks

This commit is contained in:
Alicia Sykes committed 2025-10-06 20:17:20 +01:00
1 parent 5377f3bc12
commit d47d1c52cf
3 files changed
+4 -4

No files matched your search

@@ -619,7 +619,7 @@ async function grabServiceBanner(host: string, port: number, timeout: number = 5
}, 2000); // 2 second max for banner collection
});
socket.on('data', (data: Buffer) => {
socket.on('data', (data: Uint8Array) => {
hasReceivedData = true;
banner += data.toString();
@@ -47,8 +47,8 @@
];
$effect(() => {
if (service && service !== 'custom' && services[service]) {
port = services[service].port;
if (service && service !== 'custom' && services[service as keyof typeof services]) {
port = services[service as keyof typeof services].port;
}
});
+1 -1
View File
@@ -166,7 +166,7 @@ describe('nav.ts', () => {
const details = getPageDetails('/subnetting/ipv4-subnet-calculator');
expect(details).toBeDefined();
expect(details?.title).toBe('IPv4 Subnet Calculator');
expect(details?.description).toContain('Calculate subnet information');
expect(details?.description).toContain('Calculate subnet masks');
expect(details?.keywords).toBeInstanceOf(Array);
expect(details?.keywords).toContain('subnet');
});