Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 336 Bytes

isEmpty.md

File metadata and controls

18 lines (10 loc) · 336 Bytes

.isEmpty() => Boolean

Deprecated: Use .exists() instead.

Returns whether or not the wrapper is empty.

Returns

Boolean: whether or not the wrapper is empty.

Example

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