mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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: https://github.com/nodejs/node/pull/22912 PR-URL: https://github.com/nodejs/node/pull/22849 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
b301a7b7ec
commit
b31a4d0808
1 file changed
+1
-2
@@ -33,8 +33,7 @@ function checkBadPath(err) {
|
||||
}
|
||||
|
||||
function checkException(message) {
|
||||
assert.strictEqual(message.exceptionDetails, undefined,
|
||||
'An exception occurred during execution');
|
||||
assert.strictEqual(message.exceptionDetails, undefined);
|
||||
}
|
||||
|
||||
function assertScopeValues({ result }, expected) {
|
||||
|
||||
Reference in new issue
Block a user