-
-
Notifications
You must be signed in to change notification settings - Fork 699
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
.lengthOf should work for sets and maps #1110
Comments
workaround is: expect(new Set([1])).to.have.property('size', 1); |
I think this is a very valid suggestion. If other maintainers agree, I'd love to get this into our codebase. Btw, this is very similar to #1096. |
Agreed. May also be worth adding |
PRs welcome for this! Let me know if anyone planning to make a PR would like some assistance |
@keithamus I would like to do it by this weekend. Fine with you? |
@asbish that would be more than fine. That would be wonderful! |
@asbish I have assigned this to myself, and removed the |
@keithamus Thank you for your kinds words! :) |
hey @rijnhard thanks for this issue! We're adding this in chai 5, we've added this to our Roadmap https://github.com/chaijs/chai/projects/2! We'll be releasing chai 5 soon, but for now I'll close this issue because it is tracked on our roadmap. |
sets and maps use a different property
.size
for their length but in the context of chai it should work the same way.The text was updated successfully, but these errors were encountered: