mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: refactor test-net-dns-custom-lookup
Use asssert.strictEqual to disallow coersion. PR-URL: https://github.com/nodejs/node/pull/10071 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
9b7d7487ef
commit
1c3227fd8c
1 file changed
+3
-3
@@ -18,9 +18,9 @@ function check(addressType, cb) {
|
||||
family: addressType,
|
||||
lookup: lookup
|
||||
}).on('lookup', common.mustCall(function(err, ip, type) {
|
||||
assert.equal(err, null);
|
||||
assert.equal(address, ip);
|
||||
assert.equal(type, addressType);
|
||||
assert.strictEqual(err, null);
|
||||
assert.strictEqual(address, ip);
|
||||
assert.strictEqual(type, addressType);
|
||||
}));
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user