mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Fix: Set correct indention for generated unit tests
This commit is contained in:
parent
165b4ae956
commit
946775a22f
@ -1,5 +1,9 @@
|
|||||||
# generator-react-webpack - Changelog
|
# generator-react-webpack - Changelog
|
||||||
|
|
||||||
|
## 3.2.2
|
||||||
|
|
||||||
|
1. Cleaned up formatting of unit tests
|
||||||
|
|
||||||
## 3.2.1
|
## 3.2.1
|
||||||
|
|
||||||
1. Updated tests for new version of react-webpack-template
|
1. Updated tests for new version of react-webpack-template
|
||||||
|
|||||||
@ -10,13 +10,13 @@ import createComponent from 'helpers/shallowRenderHelper';
|
|||||||
import <%= component.className %> from '<%= component.webpackPath %>';
|
import <%= component.className %> from '<%= component.webpackPath %>';
|
||||||
|
|
||||||
describe('<%= component.className %>', () => {
|
describe('<%= component.className %>', () => {
|
||||||
let component;
|
let component;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
component = createComponent(<%= component.className %>);
|
component = createComponent(<%= component.className %>);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have its component name as default className', () => {
|
it('should have its component name as default className', () => {
|
||||||
expect(component.props.className).to.equal('<%= style.className %>');
|
expect(component.props.className).to.equal('<%= style.className %>');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user