Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 343 Bytes

hostNodes.md

File metadata and controls

18 lines (9 loc) · 343 Bytes

.hostNodes() => ShallowWrapper

Returns a new wrapper with only host nodes.

Returns

ShallowWrapper: A new wrapper that wraps the filtered nodes.

Examples

const wrapper = shallow(<div><MyComponent className="foo" /><div className="foo" /></div>);
expect(wrapper.find('.foo').hostNodes()).to.have.lengthOf(1);