diff --git a/generators/component/templates/3/tests/Base.js b/generators/component/templates/3/tests/Base.js index 3337a6c..8f11e33 100644 --- a/generators/component/templates/3/tests/Base.js +++ b/generators/component/templates/3/tests/Base.js @@ -9,14 +9,14 @@ import createComponent from 'helpers/shallowRenderHelper'; import <%= component.className %> from '<%= component.webpackPath %>'; -describe('<%= component.className %>', () => { +describe('<%= component.className %>', function () { let component; - beforeEach(() => { + beforeEach(function () { component = createComponent(<%= component.className %>); }); - it('should have its component name as default className', () => { + it('should have its component name as default className', function () { expect(component.props.className).to.equal('<%= style.className %>'); }); }); diff --git a/generators/component/templates/4/tests/Base.js b/generators/component/templates/4/tests/Base.js index 38451b4..c48f011 100644 --- a/generators/component/templates/4/tests/Base.js +++ b/generators/component/templates/4/tests/Base.js @@ -2,16 +2,16 @@ import React from 'react'; import { shallow } from 'enzyme'; import <%= component.className %> from '<%= component.webpackPath %>'; -describe('<<%= component.className %> />', () => { +describe('<<%= component.className %> />', function () { let component; - beforeEach(() => { + beforeEach(function () { component = shallow(<<%= component.className %> />); }); - describe('when rendering the component', () => { + describe('when rendering the component', function () { - it('should have a className of "<%= style.className %>"', () => { + it('should have a className of "<%= style.className %>"', function () { expect(component.hasClass('<%= style.className %>')).to.equal(true); }); });