Skip to content

Commit

Permalink
test: update test-dns.js after a60a9b0
Browse files Browse the repository at this point in the history
resolveTxt now returns a 2-d array for all the chunks string chunks
relating to the record
  • Loading branch information
tjfontaine committed Apr 30, 2014
1 parent ab7a3d0 commit 7b72e15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/internet/test-dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var assert = require('assert'),
isIP = net.isIP,
isIPv4 = net.isIPv4,
isIPv6 = net.isIPv6;
var util = require('util');

var expected = 0,
completed = 0,
Expand Down Expand Up @@ -301,7 +302,8 @@ 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);
assert.ok(util.isArray(records[0]));
assert.equal(records[0][0].indexOf('v=spf1'), 0);
done();
});

Expand Down

0 comments on commit 7b72e15

Please sign in to comment.