Skip to content

Commit 9b2fbe2

Browse files
diprudnikovTrott
authored andcommitted
test: remove third argument from assert.strictEqual()
`test/parallel/test-util-inspect.js` has a call to `assert.strictEqual()` that receives three arguments. The third argument is a string literal. Unfortunately, calling assert.strictEqual() this way means that if there is an AssertionError, the value of the variables pos and npos are not reported. This PR removes this argument.
1 parent 1744205 commit 9b2fbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-util-inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ if (typeof Symbol !== 'undefined') {
979979
const npos = line.search(numRE);
980980
if (npos !== -1) {
981981
if (pos !== undefined) {
982-
assert.strictEqual(pos, npos, 'container items not aligned');
982+
assert.strictEqual(pos, npos);
983983
}
984984
pos = npos;
985985
}

0 commit comments

Comments
 (0)