diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ce408f..ff64c32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # generator-react-webpack - Changelog +## 3.2.2 + +1. Cleaned up formatting of unit tests + ## 3.2.1 1. Updated tests for new version of react-webpack-template diff --git a/generators/component/templates/tests/Base.js b/generators/component/templates/tests/Base.js index 92cf2ba..10b2635 100644 --- a/generators/component/templates/tests/Base.js +++ b/generators/component/templates/tests/Base.js @@ -10,13 +10,13 @@ import createComponent from 'helpers/shallowRenderHelper'; import <%= component.className %> from '<%= component.webpackPath %>'; describe('<%= component.className %>', () => { - let component; + let component; - beforeEach(() => { - component = createComponent(<%= component.className %>); - }); + beforeEach(() => { + component = createComponent(<%= component.className %>); + }); - it('should have its component name as default className', () => { - expect(component.props.className).to.equal('<%= style.className %>'); - }); + it('should have its component name as default className', () => { + expect(component.props.className).to.equal('<%= style.className %>'); + }); });