Skip to content

Commit f1d3f97

Browse files
diprudnikovGeorge Adams
authored and
George Adams
committed
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. PR-URL: #22371 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: George Adams <[email protected]>
1 parent 28675b6 commit f1d3f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-util-inspect.js

Lines changed: 1 addition & 1 deletion
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)