projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab7a3d0
)
test: update test-dns.js after a60a9b0
author
Timothy J Fontaine
<tjfontaine@gmail.com>
Wed, 30 Apr 2014 16:14:55 +0000
(09:14 -0700)
committer
Timothy J Fontaine
<tjfontaine@gmail.com>
Wed, 30 Apr 2014 16:14:55 +0000
(09:14 -0700)
resolveTxt now returns a 2-d array for all the chunks string chunks
relating to the record
test/internet/test-dns.js
patch
|
blob
|
history
diff --git
a/test/internet/test-dns.js
b/test/internet/test-dns.js
index
13a2d6a
..
d3f9542
100644
(file)
--- a/
test/internet/test-dns.js
+++ b/
test/internet/test-dns.js
@@
-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,
@@
-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();
});