Skip to content

Commit 5e5a1c0

Browse files
AdriVanHoudtFishrock123
authored andcommitted
test: cleanup test-child-process-buffering.js
PR-URL: #8578 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
1 parent bcba27e commit 5e5a1c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
2+
const common = require('../common');
3+
const assert = require('assert');
44

55
function pwd(callback) {
6-
var output = '';
7-
var child = common.spawnPwd();
6+
let output = '';
7+
const child = common.spawnPwd();
88

99
child.stdout.setEncoding('utf8');
1010
child.stdout.on('data', function(s) {
@@ -14,7 +14,7 @@ function pwd(callback) {
1414

1515
child.on('exit', common.mustCall(function(c) {
1616
console.log('exit: ' + c);
17-
assert.equal(0, c);
17+
assert.strictEqual(0, c);
1818
}));
1919

2020
child.on('close', common.mustCall(function() {
@@ -25,6 +25,6 @@ function pwd(callback) {
2525

2626
pwd(function(result) {
2727
console.dir(result);
28-
assert.equal(true, result.length > 1);
29-
assert.equal('\n', result[result.length - 1]);
28+
assert.strictEqual(true, result.length > 1);
29+
assert.strictEqual('\n', result[result.length - 1]);
3030
});

0 commit comments

Comments
 (0)