Skip to content

Commit

Permalink
fix(Schematics): Remove extra braces from constructor for container b…
Browse files Browse the repository at this point in the history
…lueprint (#791)

Closes #778
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Feb 6, 2018
1 parent 107a213 commit 945bf40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/schematics/src/container/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('Container Schematic', () => {
const tree = schematicRunner.runSchematic('container', options, appTree);
const content = getFileContent(tree, '/src/app/foo/foo.component.ts');
expect(content).toMatch(
/constructor\(private store\: Store\<fromStore\.State\>\) { }/
/constructor\(private store\: Store\<fromStore\.State\>\) { }\n\n/
);
});

Expand Down
2 changes: 1 addition & 1 deletion modules/schematics/src/container/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function addStateToComponent(options: FeatureOptions) {
const constructorUpdate = new ReplaceChange(
componentPath,
pos,
` ${constructorText}`,
` ${constructorText}\n\n`,
`\n\n ${storeConstructor}`
);

Expand Down

0 comments on commit 945bf40

Please sign in to comment.