From 519efc49de6118faa1c885beac37fc7694707f09 Mon Sep 17 00:00:00 2001 From: Kristofer Walters Date: Tue, 27 Dec 2016 14:27:15 +0100 Subject: [PATCH] Fix eslint error --- src/Button.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Button.test.js b/src/Button.test.js index a69385312c..e654bf9466 100644 --- a/src/Button.test.js +++ b/src/Button.test.js @@ -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'; @@ -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(); wrapper.find('button').simulate('click'); expect(onClick.calledOnce).to.true;