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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
scalkpdev authored and addaleax committed Dec 8, 2016
1 parent c9ac2b3 commit f38cb9b
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 f38cb9b

Please sign in to comment.