From 1ce434a402074a78da58e974a4869ebb14a38219 Mon Sep 17 00:00:00 2001 From: scalkpdev Date: Thu, 1 Dec 2016 10:04:59 -0600 Subject: [PATCH] test: update net-local-address-port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - changed var to const - changed assert.equal to assert.strictEqual PR-URL: https://github.com/nodejs/node/pull/9885 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso --- test/parallel/test-net-local-address-port.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-net-local-address-port.js b/test/parallel/test-net-local-address-port.js index 5eebdb16be379b..56f8eab5855c46 100644 --- a/test/parallel/test-net-local-address-port.js +++ b/test/parallel/test-net-local-address-port.js @@ -1,11 +1,11 @@ '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.mustCall(function(socket) { - assert.equal(socket.localAddress, common.localhostIPv4); - assert.equal(socket.localPort, this.address().port); + assert.strictEqual(socket.localAddress, common.localhostIPv4); + assert.strictEqual(socket.localPort, this.address().port); socket.on('end', function() { server.close(); });