The Wayback Machine - https://web.archive.org/web/20250407172916/https://github.com/nodejs/node/commit/0e3593a454
Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Commit 0e3593a

Browse filesBrowse 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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
1 parent e49c7bb commit 0e3593a
Copy full SHA for 0e3593a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Copy file name to clipboard
+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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.