From 1acd26816d94c6d4c8b5df002fa3df6f61ff2d3a Mon Sep 17 00:00:00 2001 From: makenova Date: Thu, 1 Dec 2016 11:08:42 -0600 Subject: [PATCH] test: update repl tests change var to const or let change assert.equal to assert.strictEqual PR-URL: https://github.com/nodejs/node/pull/9991 Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell --- test/parallel/test-repl.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index d79247153bd4de..1e84297ee75159 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -1,6 +1,6 @@ /* eslint-disable max-len, strict */ -var common = require('../common'); -var assert = require('assert'); +const common = require('../common'); +const assert = require('assert'); common.globalCheck = false; common.refreshTmpDir(); @@ -19,7 +19,7 @@ var server_tcp, server_unix, client_tcp, client_unix, replServer; // absolute path to test/fixtures/a.js -var moduleFilename = require('path').join(common.fixturesDir, 'a'); +const moduleFilename = require('path').join(common.fixturesDir, 'a'); console.error('repl test'); @@ -30,7 +30,7 @@ global.invoke_me = function(arg) { function send_expect(list) { if (list.length > 0) { - var cur = list.shift(); + const cur = list.shift(); console.error('sending ' + JSON.stringify(cur.send)); @@ -330,8 +330,8 @@ function tcp_test() { client_tcp = net.createConnection(this.address().port); client_tcp.on('connect', function() { - assert.equal(true, client_tcp.readable); - assert.equal(true, client_tcp.writable); + assert.strictEqual(true, client_tcp.readable); + assert.strictEqual(true, client_tcp.writable); send_expect([ { client: client_tcp, send: '', @@ -399,8 +399,8 @@ function unix_test() { client_unix = net.createConnection(common.PIPE); client_unix.on('connect', function() { - assert.equal(true, client_unix.readable); - assert.equal(true, client_unix.writable); + assert.strictEqual(true, client_unix.readable); + assert.strictEqual(true, client_unix.writable); send_expect([ { client: client_unix, send: '',