-
-
Notifications
You must be signed in to change notification settings - Fork 770
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
FeatureRequest: nested property matcher #1556
Labels
Comments
|
I would propose a custom implementation but I doubt it would have any benefits over a mature library like Lodash. I'll make a PR. |
This was fixed with #1560 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Request to add this function signature:
sinon.match.hasNested(keypath, expected)
where
keypath
functions like Lodash.get supporting"outer.inner"
or"outer[inner]"
.Turning this syntax into this syntax
Personally, I would prefer
has
supported nested keypaths, but that would probably break backwards compatibility. The implementation is simple if the addition of thelodash.get
library is acceptable.The text was updated successfully, but these errors were encountered: