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 targos committed Jan 23, 2017
1 parent f4e76eb commit 42a52c0
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 42a52c0

Please sign in to comment.