-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: var to const, assert.equal to assert.strictEqual in net
* var -> const * assert.equal -> assert.strictEqual
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
test/parallel/test-net-better-error-messages-port-hostname.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, '***'); | ||
})); |