Skip to content

Commit 946775a

Browse files
committed
Fix: Set correct indention for generated unit tests
1 parent 165b4ae commit 946775a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# generator-react-webpack - Changelog
22

3+
## 3.2.2
4+
5+
1. Cleaned up formatting of unit tests
6+
37
## 3.2.1
48

59
1. Updated tests for new version of react-webpack-template

generators/component/templates/tests/Base.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import createComponent from 'helpers/shallowRenderHelper';
1010
import <%= component.className %> from '<%= component.webpackPath %>';
1111

1212
describe('<%= component.className %>', () => {
13-
let component;
13+
let component;
1414

15-
beforeEach(() => {
16-
component = createComponent(<%= component.className %>);
17-
});
15+
beforeEach(() => {
16+
component = createComponent(<%= component.className %>);
17+
});
1818

19-
it('should have its component name as default className', () => {
20-
expect(component.props.className).to.equal('<%= style.className %>');
21-
});
19+
it('should have its component name as default className', () => {
20+
expect(component.props.className).to.equal('<%= style.className %>');
21+
});
2222
});

0 commit comments

Comments
 (0)