Skip to content

Commit

Permalink
[Docs] shallow: .hasClass: fix use of mount
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 19, 2019
1 parent c193b50 commit 2b04cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/hasClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ expect(wrapper.find('.my-button').hasClass('disabled')).to.equal(true);

```jsx
// Searching using RegExp works fine when classes were injected by a jss decorator
const wrapper = mount(<MyComponent />);
const wrapper = shallow(<MyComponent />);
expect(wrapper.find('.my-button').hasClass(/(ComponentName)-(other)-(\d+)/)).to.equal(true);
```

Expand Down

0 comments on commit 2b04cd3

Please sign in to comment.