Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 292 Bytes

isEmpty.md

File metadata and controls

18 lines (9 loc) · 292 Bytes

.isEmpty() => Boolean

Returns whether or not the current node is empty.

Returns

Boolean: whether or not the current node is empty.

Example

const wrapper = shallow(<div className="some-class" />);
expect(wrapper.find('.other-class').isEmpty()).to.be(true);