-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: favor strictEqual() in addon test #6704
Conversation
@@ -66,7 +66,7 @@ assert.throws(function() { | |||
|
|||
setImmediate(common.mustCall(function() { | |||
for (var i = 0; i < results_arr.length; i++) { | |||
assert.equal(results_arr[i], | |||
assert.strictEqual(results_arr[i], | |||
i, | |||
`verifyExecutionOrder(${arg}) results: ${results_arr}`); |
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.
Can you fix the alignment?
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.
Hmmm...we have a custom lint rule for that. I know I made it lenient to avoid false positives, but it really should have flagged that...Will have to take a look
Anyway, yes, I'll fix the alignment!
LGTM with nit. |
LGTM |
Replace `assert.equal()` with `assert.strictEqual()` throughout `addon/make-callback-recurse/test.js`.
Nit addressed, rebased, force pushed. |
LGTM (but I already said that.) |
@bnoordhuis wrote:
From http://logs.libuv.org/node-dev/2016-05-06:
|
LGTM |
Replace `assert.equal()` with `assert.strictEqual()` throughout `addon/make-callback-recurse/test.js`. PR-URL: nodejs#6704 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Landed in 517d1da |
Replace `assert.equal()` with `assert.strictEqual()` throughout `addon/make-callback-recurse/test.js`. PR-URL: #6704 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Checklist
Affected core subsystem(s)
test
Description of change
Replace
assert.equal()
withassert.strictEqual()
throughoutaddon/make-callback-recurse/test.js
.