Skip to content

Commit

Permalink
[Docs] invoke: Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Cherouny authored and ljharb committed Jun 14, 2019
1 parent 1d2f2e8 commit e3d6d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/invoke.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Foo extends React.Component {
}
}
const wrapper = mount(<Foo />);
wrapper.find('a').invoke('onClick')().then(() => {
wrapper.find('button').invoke('onClick')().then(() => {
// expect()
});
```
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/invoke.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Foo extends React.Component {
}
}
const wrapper = shallow(<Foo />);
wrapper.find('a').invoke('onClick')().then(() => {
wrapper.find('button').invoke('onClick')().then(() => {
// expect()
});
```

0 comments on commit e3d6d5e

Please sign in to comment.