Skip to content

Commit

Permalink
test: update repl tests
Browse files Browse the repository at this point in the history
change var to const or let
change assert.equal to assert.strictEqual

PR-URL: #9991
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
makenova authored and MylesBorins committed Dec 20, 2016
1 parent db3cdd2 commit a3db544
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/parallel/test-repl.js
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -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');

Expand All @@ -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));

Expand Down Expand Up @@ -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: '',
Expand Down Expand Up @@ -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: '',
Expand Down

0 comments on commit a3db544

Please sign in to comment.