Skip to content

Commit d47d1c5

Browse files
committed
Resolved failing tests and linter checks
1 parent 5377f3b commit d47d1c5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/routes/api/internal/diagnostics/tls/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ async function grabServiceBanner(host: string, port: number, timeout: number = 5
619619
}, 2000); // 2 second max for banner collection
620620
});
621621

622-
socket.on('data', (data: Buffer) => {
622+
socket.on('data', (data: Uint8Array) => {
623623
hasReceivedData = true;
624624
banner += data.toString();
625625

src/routes/diagnostics/tls/banner/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
];
4848
4949
$effect(() => {
50-
if (service && service !== 'custom' && services[service]) {
51-
port = services[service].port;
50+
if (service && service !== 'custom' && services[service as keyof typeof services]) {
51+
port = services[service as keyof typeof services].port;
5252
}
5353
});
5454

tests/unit/lib/constants/nav.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('nav.ts', () => {
166166
const details = getPageDetails('/subnetting/ipv4-subnet-calculator');
167167
expect(details).toBeDefined();
168168
expect(details?.title).toBe('IPv4 Subnet Calculator');
169-
expect(details?.description).toContain('Calculate subnet information');
169+
expect(details?.description).toContain('Calculate subnet masks');
170170
expect(details?.keywords).toBeInstanceOf(Array);
171171
expect(details?.keywords).toContain('subnet');
172172
});

0 commit comments

Comments
 (0)