Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Latest commit

 

History

History
18 lines (9 loc) · 285 Bytes

exists.md

File metadata and controls

18 lines (9 loc) · 285 Bytes

.exists() => Boolean

Returns whether or not the current node exists.

Returns

Boolean: whether or not the current node exists.

Example

const wrapper = mount(<div className="some-class" />);
expect(wrapper.find('.other-class').exists()).to.be(false);