Skip to content

Commit

Permalink
test: update net-local-address-port
Browse files Browse the repository at this point in the history
- changed var to const
- changed assert.equal to assert.strictEqual

PR-URL: nodejs#9885
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
scalkpdev authored and Jonathan Darling committed Dec 8, 2016
1 parent 30cf154 commit 1ce434a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-net-local-address-port.js
Original file line number Diff line number Diff line change
@@ -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();
});
Expand Down

0 comments on commit 1ce434a

Please sign in to comment.