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: #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 addaleax committed Dec 5, 2016
1 parent 66554c7 commit f9386f2
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 f9386f2

Please sign in to comment.