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
deepStrictEqual #653
deepStrictEqual #653
Conversation
Added `deepStrictEqual` as an alias for `deepEqual`
LGTM. |
Thanks for the PR, @piranna! As it is written in our Are we going to enable this for the other interfaces too? |
Don't worry, the point of this suggestion was due to my employer requesting me to use
I'm not sure... From my perspective the |
@piranna yes, this new alias was a very good idea because it represents the real behavior in a better way especially for people coming from Node assertions 😄 Well, let's wait for @keithamus opinion on the Thanks again for your contribution and for sharing your point of view 🙌 |
I don't think we need to add the |
LGTM |
You are welcome :-) I'm a bit overheimet by this reception... :-P |
I'm glad to see this discussion happened and that a PR was made. I'm a bit confused by the naming however, and the decision to make an alias. Given that Chai distinguishes
This is because, as was pointed out on this thread, that I know it's too late to change anything, and I also know that no one has ever (or should ever 😄) request a non-strict deep equals, but I gotta say, I agree with Piranna that the naming was confusing and I assumed at first glance that Can't wait for a release with |
Hi @rtoal thanks for your input! It makes total sense, but I think it would be more productive to have both, because as you've said it yourself Also, about the release with You can install it by running:
Thanks again for participating, our users and contributors are also responsible for the quality of this work, let us know if you have any further doubts or considerations 😄 |
Thanks for the tip on the canary release. I had actually searched the page https://github.com/chaijs/chai/releases/tag/4.0.0-canary.1 for the text "653"; I should have actually just grabbed the release or inspected the code. No other doubts; the project is fantastic overall. The strict vs. non-strict is really a JavaScript issue, not a Chai issue, as we all know. If only Brendan would have called |
FYI technically our deep-eql algo is actually more strict than |
deepStrictEqual() is actually just an alias to deepEqual(), which is already strict (see chaijs/chai#653). notDeepEqual() is also strict
Added
deepStrictEqual
as an alias fordeepEqual