From ff045d8c1fc61c4a181d9ae13ac1aac25573ba06 Mon Sep 17 00:00:00 2001 From: Hitesh Kanwathirtha Date: Fri, 2 Dec 2016 07:22:55 +0000 Subject: [PATCH] test: polish test-net-better-error-messages-listen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cleans up test-net-better-error-messages-list.js with following: - var -> const - assert.equal -> assert.strictEqual PR-URL: https://github.com/nodejs/node/pull/10087 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso --- .../test-net-better-error-messages-listen.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/parallel/test-net-better-error-messages-listen.js b/test/parallel/test-net-better-error-messages-listen.js index 44adce71a7d541..15ef4036aaa89a 100644 --- a/test/parallel/test-net-better-error-messages-listen.js +++ b/test/parallel/test-net-better-error-messages-listen.js @@ -1,12 +1,12 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); -var net = require('net'); +const common = require('../common'); +const assert = require('assert'); +const net = require('net'); -var server = net.createServer(common.fail); +const server = net.createServer(common.fail); server.listen(1, '1.1.1.1', common.fail); server.on('error', common.mustCall(function(e) { - assert.equal(e.address, '1.1.1.1'); - assert.equal(e.port, 1); - assert.equal(e.syscall, 'listen'); + assert.strictEqual(e.address, '1.1.1.1'); + assert.strictEqual(e.port, 1); + assert.strictEqual(e.syscall, 'listen'); }));