Skip to content

Commit

Permalink
test: changed vars to const in test-net-better-error-messages-listen-…
Browse files Browse the repository at this point in the history
…path.js

* `var` to `const`
* use `assert.strictEqual`

PR-URL: #9905
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
anoff authored and MylesBorins committed Dec 21, 2016
1 parent f612f85 commit fcbda23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/parallel/test-net-better-error-messages-listen-path.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var net = require('net');
var fp = '/blah/fadfa';
var server = net.createServer(common.fail);
const common = require('../common');
const assert = require('assert');
const net = require('net');
const fp = '/blah/fadfa';
const server = net.createServer(common.fail);
server.listen(fp, common.fail);
server.on('error', common.mustCall(function(e) {
assert.equal(e.address, fp);
assert.strictEqual(e.address, fp);
}));

0 comments on commit fcbda23

Please sign in to comment.