Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 470 Bytes

is.md

File metadata and controls

22 lines (11 loc) · 470 Bytes

.is(selector) => Boolean

Returns whether or not the single wrapped node matches the provided selector. It must be a single-node wrapper.

Arguments

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

Returns

Boolean: whether or not the wrapped node matches the provided selector.

Example

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