-
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: refactor assert
in internet test-dns.js
#8980
Conversation
change assert.equal() to assert.strictEqual() and use assert.strictEqual() for type validation
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.
Not sure about the typeof
assertions that already use ===
. I find assert.ok(typeof foo === 'bar');
easier to grok. Anyway LGTM.
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
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
The linter passed from the CI (we don't run the I also ran this test locally (macOS) and it passed. |
Oh. We got error. @lpinca OK! Thank you for that info. |
@jun-oka I actually find the You don't need to worry about the errors as the test you changed isn't run in the CI. The linter passed though, which is good. |
@gibfahn Yes! I am aware of CI :) Thank you for letting mo know! |
change assert.equal() to assert.strictEqual() and use assert.strictEqual() for type validation PR-URL: #8980 Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Landed in 528c844. Thank you! |
change assert.equal() to assert.strictEqual() and use assert.strictEqual() for type validation PR-URL: #8980 Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
change assert.equal() to assert.strictEqual() and use assert.strictEqual() for type validation PR-URL: #8980 Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This does not land cleanly in LTS. Added dont-land label. Please feel free to manually backport |
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test internet test-dns
Description of change