Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented May 12, 2016

Checklist
  • tests and code linting passes
  • the commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change

Replace assert.equal() with assert.strictEqual() throughout
addon/make-callback-recurse/test.js.

@Trott Trott added the test Issues and PRs related to the tests. label May 12, 2016
@@ -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}`);
Copy link
Member

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?

Copy link
Member Author

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!

@bnoordhuis
Copy link
Member

LGTM with nit.

@jasnell
Copy link
Member

jasnell commented May 12, 2016

LGTM

Replace `assert.equal()` with `assert.strictEqual()` throughout
`addon/make-callback-recurse/test.js`.
@Trott
Copy link
Member Author

Trott commented May 12, 2016

Nit addressed, rebased, force pushed.

@bnoordhuis
Copy link
Member

LGTM (but I already said that.)

@Trott
Copy link
Member Author

Trott commented May 12, 2016

@bnoordhuis wrote:

LGTM (but I already said that.)

From http://logs.libuv.org/node-dev/2016-05-06:

05:31:00    <jbergstroem>   Trott: such a chatterbox! https://github.com/nodejs/node/issues?utf8=✓&q=commenter%3Atrott
05:33:02    <Trott> I have wasted my life.
05:33:13    <jbergstroem>   (try bnoordhuis though)

@cjihrig
Copy link
Contributor

cjihrig commented May 13, 2016

LGTM

@Trott
Copy link
Member Author

Trott commented May 13, 2016

Trott added a commit to Trott/io.js that referenced this pull request May 14, 2016
Replace `assert.equal()` with `assert.strictEqual()` throughout
`addon/make-callback-recurse/test.js`.

PR-URL: nodejs#6704
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@Trott
Copy link
Member Author

Trott commented May 14, 2016

Landed in 517d1da

@Trott Trott closed this May 14, 2016
evanlucas pushed a commit that referenced this pull request May 17, 2016
Replace `assert.equal()` with `assert.strictEqual()` throughout
`addon/make-callback-recurse/test.js`.

PR-URL: #6704
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@Trott Trott deleted the recurse branch January 13, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants