Skip to content

Commit 33994d8

Browse files
diprudnikovtargos
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. 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 660c515 commit 33994d8

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
@@ -1031,7 +1031,7 @@ if (typeof Symbol !== 'undefined') {
10311031
const npos = line.search(numRE);
10321032
if (npos !== -1) {
10331033
if (pos !== undefined) {
1034-
assert.strictEqual(pos, npos, 'container items not aligned');
1034+
assert.strictEqual(pos, npos);
10351035
}
10361036
pos = npos;
10371037
}

0 commit comments

Comments
 (0)