mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 15:19:16 +00:00
12 lines
576 B
TypeScript
12 lines
576 B
TypeScript
import assert from 'node:assert/strict';
|
|
import { readFileSync } from 'node:fs';
|
|
import test from 'node:test';
|
|
|
|
const source = readFileSync(new URL('./KeychainExportPanel.tsx', import.meta.url), 'utf8');
|
|
|
|
test('key export forwards the selected host SSH connection timeouts', () => {
|
|
assert.match(source, /resolveHostSshConnectionTimeouts\(effectiveExportHost\)/);
|
|
assert.match(source, /sshTcpConnectTimeoutMs: connectionTimeouts\.tcpConnectTimeoutSeconds \* 1000/);
|
|
assert.match(source, /sshAuthReadyTimeoutMs: connectionTimeouts\.authReadyTimeoutSeconds \* 1000/);
|
|
});
|