New toBeEmpty custom matcher #8
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
needs discussion
We need to discuss this to come up with a good solution
As discussed in #4, this library needs some sort of
.toBeEmpty
custom matcher. This will pass if the given element does not contain any child elements.A few aspects of this are open to discussion. We'd like to come up with a different name that would be clearer and avoid name clashes with other matchers out there that might be checking emptiness of other things (e.g. array or collections of some sort).
How?
// TODO
Why?
Presumably doing the equivalent checks on one's own is not straightforward and concise enough.
The text was updated successfully, but these errors were encountered: