summaryrefslogtreecommitdiff
path: root/cli/tests/resolve_dns.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/resolve_dns.ts')
-rw-r--r--cli/tests/resolve_dns.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/resolve_dns.ts b/cli/tests/resolve_dns.ts
index 35abfc803..7865d9680 100644
--- a/cli/tests/resolve_dns.ts
+++ b/cli/tests/resolve_dns.ts
@@ -34,3 +34,9 @@ console.log(JSON.stringify(srv));
console.log("TXT");
console.log(JSON.stringify(txt));
+
+try {
+ await Deno.resolveDns("not-found-example.com", "A", nameServer);
+} catch (e) {
+ console.log("Error thrown for not-found-example.com");
+}