From c0a28622cec2c6de7fcd8263d773c59314e163e7 Mon Sep 17 00:00:00 2001 From: shiya Date: Thu, 1 Dec 2016 10:25:05 -0600 Subject: [PATCH] test: var -> let/const, .equal -> .strictEqual var -> let/const .equal -> .strictEqual PR-URL: https://github.com/nodejs/node/pull/9913 Reviewed-By: Prince John Wesley Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- .../test-net-better-error-messages-port.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/parallel/test-net-better-error-messages-port.js b/test/parallel/test-net-better-error-messages-port.js index 514e317fbb0b15..9d74438c5f923b 100644 --- a/test/parallel/test-net-better-error-messages-port.js +++ b/test/parallel/test-net-better-error-messages-port.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, 'ECONNREFUSED'); - assert.equal(e.port, common.PORT); - assert.equal(e.address, '127.0.0.1'); + assert.strictEqual(e.code, 'ECONNREFUSED'); + assert.strictEqual(e.port, common.PORT); + assert.strictEqual(e.address, '127.0.0.1'); }));