Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
test: add TXT DNS record lookup test
  • Loading branch information
bnoordhuis committed Oct 3, 2011
1 parent d9c67ae commit 976c6b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/internet/test-dns.js
Expand Up @@ -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;
Expand Down

0 comments on commit 976c6b0

Please sign in to comment.