-
Notifications
You must be signed in to change notification settings - Fork 410
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededneeds discussionWe need to discuss this to come up with a good solutionWe need to discuss this to come up with a good solution
Description
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.
expect(element).toBeEmpty()
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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededneeds discussionWe need to discuss this to come up with a good solutionWe need to discuss this to come up with a good solution