Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

test: add TXT DNS record lookup test

  • Loading branch information...
bnoordhuis committed Oct 3, 2011
1 parent d9c67ae commit 976c6b0826e2a2555f63917a4de852af50945868
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/internet/test-dns.js
@@ -248,6 +248,18 @@ TEST(function test_resolveCname(done) {
});


TEST(function test_resolveTxt(done) {
var req = dns.resolveTxt('google.com', function(err, records) {
if (err) throw err;
assert.equal(records.length, 1);
assert.equal(records[0].indexOf('v=spf1'), 0);
done();
});

checkWrap(req);
});


TEST(function test_lookup_ipv4_explicit(done) {
var req = dns.lookup('www.google.com', 4, function(err, ip, family) {
if (err) throw err;

0 comments on commit 976c6b0

Please sign in to comment.
You can’t perform that action at this time.