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 MylesBorins committed Dec 21, 2016
1 parent 8d876a6 commit 771931d
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 771931d

Please sign in to comment.