Skip to content

Commit

Permalink
test: refactor test-net-dns-custom-lookup
Browse files Browse the repository at this point in the history
Use asssert.strictEqual to disallow coersion.

PR-URL: #10071
Reviewed-By: Santiago Gimeno <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
funkent authored and MylesBorins committed Feb 1, 2017
1 parent 812c636 commit 61cbc20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-net-dns-custom-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}));
}));

Expand Down

0 comments on commit 61cbc20

Please sign in to comment.