Skip to content

Commit 6489a91

Browse files
Richard Karmazinaddaleax
Richard Karmazin
authored andcommitted
test: refactor test-listen-fd-ebadf
Replace var with const and assert.equal with assert.strictEqual. PR-URL: #10034 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
1 parent eb1664b commit 6489a91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-listen-fd-ebadf.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
4-
var net = require('net');
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const net = require('net');
55

66
net.createServer(common.fail).listen({fd: 2})
77
.on('error', common.mustCall(onError));
88
net.createServer(common.fail).listen({fd: 42})
99
.on('error', common.mustCall(onError));
1010

1111
function onError(ex) {
12-
assert.equal(ex.code, 'EINVAL');
12+
assert.strictEqual(ex.code, 'EINVAL');
1313
}

0 commit comments

Comments
 (0)