.childAt(index) => ShallowWrapper
Returns a new wrapper with child at the specified index.
Argumentsindex
(number
): A zero-based integer indicating which node to retrieve.ShallowWrapper
: A new wrapper that wraps the resulting node.
const wrapper = shallow(<ToDoList items={items} />);
expect(wrapper.find('ul').childAt(0).type()).to.equal('li');
.parents([selector]) => ShallowWrapper
.parent() => ShallowWrapper
.closest(selector) => ShallowWrapper
.children([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