Skip to content

Commit

Permalink
[Docs] shallow: exists: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hituzi-no-sippo authored and ljharb committed Apr 14, 2020
1 parent 534bc77 commit 393da04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/exists.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Returns whether or not any nodes exist in the wrapper. Or, if a selector is pass


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

0 comments on commit 393da04

Please sign in to comment.