Skip to content

Commit

Permalink
Merge pull request #1117 from therewillbecode/patch-1
Browse files Browse the repository at this point in the history
Removed extraneous brackets from example in readme
  • Loading branch information
lelandrichardson authored Sep 16, 2017
2 parents 47c9302 + 0cabd49 commit 9f08ad4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ describe('<MyComponent />', () => {

it('simulates click events', () => {
const onButtonClick = sinon.spy();
const wrapper = shallow((
<Foo onButtonClick={onButtonClick} />
));
const wrapper = shallow(<Foo onButtonClick={onButtonClick} />);
wrapper.find('button').simulate('click');
expect(onButtonClick).to.have.property('callCount', 1);
});
Expand Down

0 comments on commit 9f08ad4

Please sign in to comment.