.children([selector]) => ShallowWrapper
Returns a new wrapper with all of the children of the node(s) in the current wrapper. Optionally, a selector can be provided and it will filter the children by this selector
Argumentsselector
(EnzymeSelector
[optional]): A selector to filter the children by.ShallowWrapper
: A new wrapper that wraps the resulting nodes.
const wrapper = shallow(<ToDoList items={items} />);
expect(wrapper.find('ul').children()).to.have.lengthOf(items.length);
.parents([selector]) => ShallowWrapper
.parent() => ShallowWrapper
.closest(selector) => ShallowWrapper
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4