Skip to content

Commit

Permalink
test: var -> let/const, .equal -> .strictEqual
Browse files Browse the repository at this point in the history
var -> let/const
.equal -> .strictEqual

PR-URL: #9913
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
shiya authored and addaleax committed Dec 5, 2016
1 parent d1da899 commit c0a2862
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-net-better-error-messages-port.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, 'ECONNREFUSED');
assert.equal(e.port, common.PORT);
assert.equal(e.address, '127.0.0.1');
assert.strictEqual(e.code, 'ECONNREFUSED');
assert.strictEqual(e.port, common.PORT);
assert.strictEqual(e.address, '127.0.0.1');
}));

0 comments on commit c0a2862

Please sign in to comment.