mirror of https://github.com/lukechilds/node.git
Browse Source
var -> let/const .equal -> .strictEqual PR-URL: https://github.com/nodejs/node/pull/9913 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>v7.x
shiya
8 years ago
committed by
Anna Henningsen
1 changed files with 7 additions and 7 deletions
@ -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'); |
|||
})); |
|||
|
Loading…
Reference in new issue