Skip to content

Commit 1acd268

Browse files
makenovaMylesBorins
authored andcommitted
test: update repl tests
change var to const or let change assert.equal to assert.strictEqual PR-URL: #9991 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 10074bd commit 1acd268

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/parallel/test-repl.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable max-len, strict */
2-
var common = require('../common');
3-
var assert = require('assert');
2+
const common = require('../common');
3+
const assert = require('assert');
44

55
common.globalCheck = false;
66
common.refreshTmpDir();
@@ -19,7 +19,7 @@ var server_tcp, server_unix, client_tcp, client_unix, replServer;
1919

2020

2121
// absolute path to test/fixtures/a.js
22-
var moduleFilename = require('path').join(common.fixturesDir, 'a');
22+
const moduleFilename = require('path').join(common.fixturesDir, 'a');
2323

2424
console.error('repl test');
2525

@@ -30,7 +30,7 @@ global.invoke_me = function(arg) {
3030

3131
function send_expect(list) {
3232
if (list.length > 0) {
33-
var cur = list.shift();
33+
const cur = list.shift();
3434

3535
console.error('sending ' + JSON.stringify(cur.send));
3636

@@ -330,8 +330,8 @@ function tcp_test() {
330330
client_tcp = net.createConnection(this.address().port);
331331

332332
client_tcp.on('connect', function() {
333-
assert.equal(true, client_tcp.readable);
334-
assert.equal(true, client_tcp.writable);
333+
assert.strictEqual(true, client_tcp.readable);
334+
assert.strictEqual(true, client_tcp.writable);
335335

336336
send_expect([
337337
{ client: client_tcp, send: '',
@@ -399,8 +399,8 @@ function unix_test() {
399399
client_unix = net.createConnection(common.PIPE);
400400

401401
client_unix.on('connect', function() {
402-
assert.equal(true, client_unix.readable);
403-
assert.equal(true, client_unix.writable);
402+
assert.strictEqual(true, client_unix.readable);
403+
assert.strictEqual(true, client_unix.writable);
404404

405405
send_expect([
406406
{ client: client_unix, send: '',

0 commit comments

Comments
 (0)