Skip to content

Commit 945bf40

Browse files
brandonrobertsMikeRyanDev
authored andcommitted
fix(Schematics): Remove extra braces from constructor for container blueprint (#791)
Closes #778
1 parent 107a213 commit 945bf40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/schematics/src/container/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('Container Schematic', () => {
6060
const tree = schematicRunner.runSchematic('container', options, appTree);
6161
const content = getFileContent(tree, '/src/app/foo/foo.component.ts');
6262
expect(content).toMatch(
63-
/constructor\(private store\: Store\<fromStore\.State\>\) { }/
63+
/constructor\(private store\: Store\<fromStore\.State\>\) { }\n\n/
6464
);
6565
});
6666

modules/schematics/src/container/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function addStateToComponent(options: FeatureOptions) {
9696
const constructorUpdate = new ReplaceChange(
9797
componentPath,
9898
pos,
99-
` ${constructorText}`,
99+
` ${constructorText}\n\n`,
100100
`\n\n ${storeConstructor}`
101101
);
102102

0 commit comments

Comments
 (0)