Skip to content

Commit

Permalink
Merge pull request enzymejs#96 from erikthedeveloper/fix/docs-shallow…
Browse files Browse the repository at this point in the history
…-simulate-and-forEach

[Docs] Minor Doc Fixes for ShallowWrapper.{forEach, simulate}
  • Loading branch information
ljharb committed Dec 29, 2015
2 parents 2961f66 + d00c142 commit 5616366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/forEach.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const wrapper = shallow(
);

wrapper.find('.foo').forEach(function (node) {
expect(s.hasClass('foo')).to.be true;
expect(node.hasClass('foo')).to.equal(true);
});
```

Expand Down
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/simulate.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Foo extends React.Component {
const wrapper = shallow(<Foo />);

expect(wrapper.find('.clicks-0').length).to.equal(1);
wrapper.simulate('click');
wrapper.find('a').simulate('click');
expect(wrapper.find('.clicks-1').length).to.equal(1);
```

Expand Down

0 comments on commit 5616366

Please sign in to comment.