Skip to content

Commit cc6b2f4

Browse files
larissayvetteMyles Borins
authored and
Myles Borins
committed
test: fixes that do not affect performance
PR-URL: #9011 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 70eadea commit cc6b2f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-debugger-pid.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ interfacer.on('line', function(line) {
2929
switch (++lineCount) {
3030
case 1:
3131
line = line.replace(/^(debug> *)+/, '');
32-
var msg = 'There was an internal error in Node\'s debugger. ' +
33-
'Please report this bug.';
32+
const msg = 'There was an internal error in Node\'s debugger. ' +
33+
'Please report this bug.';
3434
expected = `(node:${pid}) ${msg}`;
3535
break;
3636

@@ -50,5 +50,5 @@ interfacer.on('line', function(line) {
5050
});
5151

5252
interfacer.on('exit', function(code, signal) {
53-
assert.ok(code == 1, 'Got unexpected code: ' + code);
53+
assert.strictEqual(code, 1, `Got unexpected code: ${code}`);
5454
});

0 commit comments

Comments
 (0)