Skip to content

Commit

Permalink
Fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
kwltrs committed Jan 4, 2017
1 parent aa07701 commit 519efc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Button.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable no-unused-expressions */
/*eslint-env mocha */
/*eslint-disable no-unused-expressions */

import React from 'react';
import { expect } from 'chai';
Expand Down Expand Up @@ -164,7 +165,7 @@ describe('Button components:', () => {
});

it('runs the function passed as onClick when clicked', () => {
let onClick = spy();
const onClick = spy();
const wrapper = shallow(<Button onClick={onClick}>Hello</Button>);
wrapper.find('button').simulate('click');
expect(onClick.calledOnce).to.true;
Expand Down

0 comments on commit 519efc4

Please sign in to comment.