Uh oh!
There was an error while loading. Please reload this page.
test,repl: use deepStrictEqual for false-y values - #6196
Conversation
cjihrig
commented
Apr 14, 2016
LGTM. And yes, IMO we should make all of the assertions as strict as practical to avoid surprises. |
Fishrock123
commented
Apr 14, 2016
We could make a lint rule that requires strict assertions for the tests, but I feel people may be opposed to that? |
addaleax
commented
Apr 14, 2016
Oh, yeah, sorry, I just copied from the already-present test. But this sounds good to me, too. |
Trott
commented
Apr 15, 2016
LGTM. @Fishrock123 I have a lint rule written and will submit a PR soon. We'll find out if there's opposition or not... |
jasnell
commented
Apr 15, 2016
LGTM |
1 similar comment
JungMinu
commented
Apr 17, 2016
LGTM |
jasnell
commented
Apr 18, 2016
PR-URL: #6196 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
jasnell
commented
Apr 18, 2016
Landed in 15d970d |
Fishrock123
commented
Apr 19, 2016
@jasnell Please avoid landing other collaborator's stuff. I don't think this PR/commit is worthwhile in light of the discussion, thanks. |
jasnell
commented
Apr 19, 2016
@Fishrock123 ... just following the same process I do for everything (and the same process I will continue to follow). There were multiple LGTM's, no obvious indication that it shouldn't land, and green CI. If this is something that you feel should be reverted, please feel free to open a PR reverting it. Suggestion: we do have an |
Fishrock123
commented
Apr 19, 2016
Historically, for a long time, we have mostly avoided merging other collaborators PRs unless they are npm upgrades, or critical fixes of some sort. I see that is not stated in our resources and am going to make amends to those.
In this case, it's just unnecessary git history. (And personally, as the author of this commit, slightly non-sensical in hindsight.) |
PR-URL: #6196 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
PR-URL: #6196 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
PR-URL: #6196 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
PR-URL: #6196 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
PR-URL: nodejs#6196 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
PR-URL: #6196 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Checklist
Affected core subsystem(s)
doc,repl
Description of change
Refs: 0b66b8f#commitcomment-17104918, #6192
... Should we just change this throughout all of our testes, except the assert ones themselves?
As a note, I'm not sure how much it matters for this test, but testing false-y values with
deepEqual()can easily miss problems.cc @nodejs/testing