Skip to content

Commit

Permalink
test: var to const, assert.equal to assert.strictEqual in net
Browse files Browse the repository at this point in the history
* var -> const
* assert.equal -> assert.strictEqual

PR-URL: #9907
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
stv8 authored and MylesBorins committed Dec 21, 2016
1 parent fcbda23 commit 65251e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-net-better-error-messages-port-hostname.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict';
var common = require('../common');
var net = require('net');
var assert = require('assert');
const common = require('../common');
const net = require('net');
const assert = require('assert');

var c = net.createConnection(common.PORT, '***');
const c = net.createConnection(common.PORT, '***');

c.on('connect', common.fail);

c.on('error', common.mustCall(function(e) {
assert.equal(e.code, 'ENOTFOUND');
assert.equal(e.port, common.PORT);
assert.equal(e.hostname, '***');
assert.strictEqual(e.code, 'ENOTFOUND');
assert.strictEqual(e.port, common.PORT);
assert.strictEqual(e.hostname, '***');
}));

0 comments on commit 65251e5

Please sign in to comment.