Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Nov 13, 2016
1 parent 3865d8b commit c20e4bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api/ShallowWrapper/invoke.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Foo extends React.Component {
const { count } = this.state;
return (
<div>
<div className={`clicks-${count}`}>
<div data-clicks={count}>
{count} clicks
</div>
<a onClick={() => this.setState({ count: count + 1 })}>
Expand All @@ -41,9 +41,9 @@ class Foo extends React.Component {

const wrapper = shallow(<Foo />);

expect(wrapper.find('.clicks-0').length).to.equal(1);
expect(wrapper.find('[data-clicks=0]').length).to.equal(1);
wrapper.find('a').invoke('click');
expect(wrapper.find('.clicks-1').length).to.equal(1);
expect(wrapper.find('[data-clicks=1]').length).to.equal(1);
```

#### Related Methods
Expand Down

0 comments on commit c20e4bf

Please sign in to comment.