diff options
author | Rich Trott <rtrott@gmail.com> | 2018-09-01 22:47:37 -0700 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-09-25 16:45:48 -0400 |
commit | f2158f30fbf0ca63886a0f8c22cbbf1b683035bd (patch) | |
tree | 03faade21028f2303ee627cd3a1a98d7dfbd5949 /test | |
parent | 0340dd8c8d0227f31bd93f32589c8929fe4d9045 (diff) | |
download | node-new-f2158f30fbf0ca63886a0f8c22cbbf1b683035bd.tar.gz |
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/22888
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/sequential/test-inspector.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sequential/test-inspector.js b/test/sequential/test-inspector.js index 50fcff2d42..e7fec6f256 100644 --- a/test/sequential/test-inspector.js +++ b/test/sequential/test-inspector.js @@ -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 assertNoUrlsWhileConnected(response) { |