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

Latest commit

 

History

History
25 lines (11 loc) · 428 Bytes

is.md

File metadata and controls

25 lines (11 loc) · 428 Bytes

.is(selector) => Boolean

Returns whether or not the current node matches a provided selector.

Arguments

  1. selector (EnzymeSelector): The selector to match.

Returns

Boolean: whether or not the current node matches a provided selector.

Example

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