Browse Source

test: update test-dns.js after a60a9b0

resolveTxt now returns a 2-d array for all the chunks string chunks
relating to the record
v0.11.13-release
Timothy J Fontaine 11 years ago
parent
commit
7b72e15665
  1. 4
      test/internet/test-dns.js

4
test/internet/test-dns.js

@ -26,6 +26,7 @@ var assert = require('assert'),
isIP = net.isIP, isIP = net.isIP,
isIPv4 = net.isIPv4, isIPv4 = net.isIPv4,
isIPv6 = net.isIPv6; isIPv6 = net.isIPv6;
var util = require('util');
var expected = 0, var expected = 0,
completed = 0, completed = 0,
@ -301,7 +302,8 @@ TEST(function test_resolveTxt(done) {
var req = dns.resolveTxt('google.com', function(err, records) { var req = dns.resolveTxt('google.com', function(err, records) {
if (err) throw err; if (err) throw err;
assert.equal(records.length, 1); 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(); done();
}); });

Loading…
Cancel
Save