diff --git a/modules/schematics/src/container/index.spec.ts b/modules/schematics/src/container/index.spec.ts index 2a38e3b114..65deaae7fe 100644 --- a/modules/schematics/src/container/index.spec.ts +++ b/modules/schematics/src/container/index.spec.ts @@ -51,7 +51,6 @@ describe('Container Schematic', () => { appTree.create('/src/app/reducers', ''); const tree = schematicRunner.runSchematic('container', options, appTree); const content = getFileContent(tree, '/src/app/foo/foo.component.ts'); - console.log(content); expect(content).toMatch(/import\ {\ Store\ }\ from\ '@ngrx\/store';/); }); @@ -61,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\\) { }/ + /constructor\(private store\: Store\\) { }\n\n/ ); }); diff --git a/modules/schematics/src/container/index.ts b/modules/schematics/src/container/index.ts index 19c0700ead..be750aa07f 100644 --- a/modules/schematics/src/container/index.ts +++ b/modules/schematics/src/container/index.ts @@ -96,7 +96,7 @@ function addStateToComponent(options: FeatureOptions) { const constructorUpdate = new ReplaceChange( componentPath, pos, - ` ${constructorText}`, + ` ${constructorText}\n\n`, `\n\n ${storeConstructor}` );