Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Latest commit

 

History

History
19 lines (10 loc) · 345 Bytes

isEmpty.md

File metadata and controls

19 lines (10 loc) · 345 Bytes

.isEmpty() => Boolean

Deprecated: Use .exists() instead.

Returns whether or not the current node is empty.

Returns

Boolean: whether or not the current node is empty.

Example

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