mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
test: refactor test-listen-fd-ebadf
Replace var with const and assert.equal with assert.strictEqual. PR-URL: https://github.com/nodejs/node/pull/10034 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
This commit is contained in:
1 parent
eb1664bed9
commit
6489a91027
1 file changed
+4
-4
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
var common = require('../common');
|
||||
var assert = require('assert');
|
||||
var net = require('net');
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const net = require('net');
|
||||
|
||||
net.createServer(common.fail).listen({fd: 2})
|
||||
.on('error', common.mustCall(onError));
|
||||
@@ -9,5 +9,5 @@ net.createServer(common.fail).listen({fd: 42})
|
||||
.on('error', common.mustCall(onError));
|
||||
|
||||
function onError(ex) {
|
||||
assert.equal(ex.code, 'EINVAL');
|
||||
assert.strictEqual(ex.code, 'EINVAL');
|
||||
}
|
||||
Reference in new issue
Block a user