summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/resolve_dns.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-01-11 21:31:14 +0100
committerGitHub <noreply@github.com>2023-01-11 21:31:14 +0100
commitb0e0e4f24b91c9be6a9bb005dc1f683d3b563bd6 (patch)
tree196043a170306869daccb85363c248580bc5b695 /cli/tests/testdata/run/resolve_dns.ts
parent6ee5563f6860758a18f35cee412d5fe3e139cf7c (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.ts7
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);
+}