Skip to content

Commit b31a4d0

Browse files
Trotttargos
authored andcommitted
test: improve assertion in test-inspector.js
Remove an unecessary string literal from assert.strictEqual() call in test-inspector.js. The string literal is printed instead of the value that causes an error. Removing the string literal allows the value that caused the error to be printed. This improves the troubleshooting experience when the test fails due to that assertion. Backport-PR-URL: #22912 PR-URL: #22849 Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent b301a7b commit b31a4d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/sequential/test-inspector.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ function checkBadPath(err) {
3333
}
3434

3535
function checkException(message) {
36-
assert.strictEqual(message.exceptionDetails, undefined,
37-
'An exception occurred during execution');
36+
assert.strictEqual(message.exceptionDetails, undefined);
3837
}
3938

4039
function assertScopeValues({ result }, expected) {

0 commit comments

Comments
 (0)