mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-12-04 18:35:34 +03:00
Resolved failing tests and linter checks
This commit is contained in:
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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user