Skip to content

Commit

Permalink
Merge pull request #40 from airbnb/lmr--docs-click-simulate-fix
Browse files Browse the repository at this point in the history
Fixed incorrect documentation with .click() calls
  • Loading branch information
lelandrichardson committed Dec 4, 2015
2 parents afe74bd + 57bfd3e commit d602bc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('<MyComponent />', () => {
const wrapper = shallow(
<Foo onButtonClick={onButtonClick} />
);
wrapper.find('button').click();
wrapper.find('button').simulate('click');
expect(onButtonClick.calledOnce).to.be.true;
});

Expand Down Expand Up @@ -110,7 +110,7 @@ describeWithDOM('<Foo />', () => {
const wrapper = mount(
<Foo onButtonClick={onButtonClick} />
);
wrapper.find('button').click();
wrapper.find('button').simulate('click');
expect(onButtonClick.calledOnce).to.be.true;
});

Expand Down
2 changes: 1 addition & 1 deletion docs/api/mount.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('<Foo />', () => {
const wrapper = mount(
<Foo onButtonClick={onButtonClick} />
);
wrapper.find('button').click();
wrapper.find('button').simulate('click');
expect(onButtonClick.calledOnce).to.be.true;
});

Expand Down

0 comments on commit d602bc1

Please sign in to comment.