enzyme
Version:
JavaScript Testing utilities for React
20 lines (10 loc) • 342 B
Markdown
# `.isEmpty() => Boolean`
**Deprecated**: Use [.exists()](exists.md) instead.
Returns whether or not the current node is empty.
#### Returns
`Boolean`: whether or not the current node is empty.
#### Example
```jsx
const wrapper = mount(<div className="some-class" />);
expect(wrapper.find('.other-class').isEmpty()).to.be(true);
```