Skip to content

Commit f9386f2

Browse files
scalkpdevaddaleax
scalkpdev
authored andcommitted
test: update net-local-address-port
- 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>
1 parent 66554c7 commit f9386f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/parallel/test-net-local-address-port.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
4-
var net = require('net');
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const net = require('net');
55

66
var server = net.createServer(common.mustCall(function(socket) {
7-
assert.equal(socket.localAddress, common.localhostIPv4);
8-
assert.equal(socket.localPort, this.address().port);
7+
assert.strictEqual(socket.localAddress, common.localhostIPv4);
8+
assert.strictEqual(socket.localPort, this.address().port);
99
socket.on('end', function() {
1010
server.close();
1111
});

0 commit comments

Comments
 (0)