enzyme
Version:
JavaScript Testing utilities for React
19 lines (9 loc) • 287 B
Markdown
# `.exists() => Boolean`
Returns whether or not the current node exists.
#### Returns
`Boolean`: whether or not the current node exists.
#### Example
```jsx
const wrapper = shallow(<div className="some-class" />);
expect(wrapper.find('.other-class').exists()).to.be(false);
```