diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-11 21:31:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-11 21:31:14 +0100 |
| commit | b0e0e4f24b91c9be6a9bb005dc1f683d3b563bd6 (patch) | |
| tree | 196043a170306869daccb85363c248580bc5b695 /cli/tests/testdata/run/resolve_dns.ts | |
| parent | 6ee5563f6860758a18f35cee412d5fe3e139cf7c (diff) | |
fix: don't panic on resolveDns if unsupported record type is specified (#17336)
Fixes #14373
Diffstat (limited to 'cli/tests/testdata/run/resolve_dns.ts')
| -rw-r--r-- | cli/tests/testdata/run/resolve_dns.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/resolve_dns.ts b/cli/tests/testdata/run/resolve_dns.ts index bde479c9a..ae6ed70a4 100644 --- a/cli/tests/testdata/run/resolve_dns.ts +++ b/cli/tests/testdata/run/resolve_dns.ts @@ -62,3 +62,10 @@ try { } thrown for not-found-example.com`, ); } + +try { + // @ts-ignore testing invalid overloads + await Deno.resolveDns("example.com", "SSHFP", nameServer); +} catch (e) { + console.log(e.message); +} |
