Skip to content

Commit

Permalink
test: refactor test-listen-fd-ebadf
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Karmazin authored and addaleax committed Dec 8, 2016
1 parent eb1664b commit 6489a91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-listen-fd-ebadf.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'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));
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');
}

0 comments on commit 6489a91

Please sign in to comment.