Skip to content

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);