diff --git a/test/parallel/test-net-better-error-messages-port-hostname.js b/test/parallel/test-net-better-error-messages-port-hostname.js index 23089baf448a39..b08c35f3e63ea5 100644 --- a/test/parallel/test-net-better-error-messages-port-hostname.js +++ b/test/parallel/test-net-better-error-messages-port-hostname.js @@ -1,14 +1,14 @@ 'use strict'; -var common = require('../common'); -var net = require('net'); -var assert = require('assert'); +const common = require('../common'); +const net = require('net'); +const assert = require('assert'); -var c = net.createConnection(common.PORT, '***'); +const c = net.createConnection(common.PORT, '***'); c.on('connect', common.fail); c.on('error', common.mustCall(function(e) { - assert.equal(e.code, 'ENOTFOUND'); - assert.equal(e.port, common.PORT); - assert.equal(e.hostname, '***'); + assert.strictEqual(e.code, 'ENOTFOUND'); + assert.strictEqual(e.port, common.PORT); + assert.strictEqual(e.hostname, '***'); }));