-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: remove message argument from strictEqual() #20912
Conversation
In test/parallel/test-require-process.js, the last thing in the test is a call to assert.strictEqual(). It has a string literal as its third argument. Unfortunately, that means that the diff between the two values being compared will be suppressed if there is an AssertionError. That's not helpful for debugging. This is fixed by removing the third argument from the call. It is, however, preserved in a comment above the call to assert.strictEqual(). Fixes: nodejs#20911 Refs: https://www.nodetodo.org/getting-started
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for doing this and your contribution and welcome to Node.js
Changes look good to me.
Collaborators please +1 this comment to support fast-tracking this pull request. |
Three CI failures, but probably unrelated. Let's get some re-runs to see. First up, OS X: https://ci.nodejs.org/job/node-test-commit-osx/18802/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks for your contribution! 🎉
OS X was green. Windows and Linux CI are currently disasters so let's wait until that gets all straightened out before re-running those... |
In test/parallel/test-require-process.js, the last thing in the test is a call to assert.strictEqual(). It has a string literal as its third argument. Unfortunately, that means that the diff between the two values being compared will be suppressed if there is an AssertionError. That's not helpful for debugging. This is fixed by removing the third argument from the call. It is, however, preserved in a comment above the call to assert.strictEqual(). PR-URL: nodejs#20912 Fixes: nodejs#20911 Refs: https://www.nodetodo.org/getting-started Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
In test/parallel/test-require-process.js, the last thing in the test is a call to assert.strictEqual(). It has a string literal as its third argument. Unfortunately, that means that the diff between the two values being compared will be suppressed if there is an AssertionError. That's not helpful for debugging. This is fixed by removing the third argument from the call. It is, however, preserved in a comment above the call to assert.strictEqual(). PR-URL: #20912 Fixes: #20911 Refs: https://www.nodetodo.org/getting-started Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
In
test/parallel/test-require-process.js
, the last thing in the test isa call to
assert.strictEqual()
. It has a string literal as its thirdargument. Unfortunately, that means that the diff between the two values
being compared will be suppressed if there is an
AssertionError
. That'snot helpful for debugging.
This is fixed by removing the third argument from the call. It is,
however, preserved in a comment above the call to
assert.strictEqual()
.This issue was provided by @Trott of nodetodo.org. Gratitude! 🙏
Fixes: #20911
Refs: https://www.nodetodo.org/getting-started
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes