-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
Missing .nested.include
and .own.include
#905
Comments
BDD docs and tests were updated to resolve most of this issue. Still outstanding: Exposing on |
I would like to do this and already read the contributor guide and familiarised myself with the coding style, but just to clarify, that task would also entail exposing the .deepNestedInclude, .deepOwnInclude(and the negated versions, respectively) methods on the assert interface? |
@zetamorph Yup, exactly. For tests, I'd recommend just duplicating the ones for each combination from the Thanks and feel free to reach out with any questions! |
@meeber Thanks for the heads-up. I find that the following: assert.deepNestedInclude(
{a:
{b:
[
{x: 1}
]
}
},
{'a.b[0]':
{x: 1}
}
); is much harder to read than this: assert.deepNestedInclude({ a: { b: [ { x: 1 } ] } }, { 'a.b[0]': { x: 1 } }); |
@zetamorph Coding examples can be written with a focus on readability. See these examples from the updated BDD docs. |
The
nested
andown
flags currently work correctly with the.include
assertion, but it's not documented or tested. Also, this functionality isn't currently exposed via theassert
interface.Note that I'm already making some documentation updates that include this, but the issue with the tests and
assert
interface are still outstanding.The text was updated successfully, but these errors were encountered: