diff --git a/modules/schematics/src/action/files/__name@dasherize@if-flat__/__name@dasherize__.actions.spec.ts.template b/modules/schematics/src/action/files/__name@dasherize@if-flat__/__name@dasherize__.actions.spec.ts.template index ef3d878f5e..0d100f89a5 100644 --- a/modules/schematics/src/action/files/__name@dasherize@if-flat__/__name@dasherize__.actions.spec.ts.template +++ b/modules/schematics/src/action/files/__name@dasherize@if-flat__/__name@dasherize__.actions.spec.ts.template @@ -1,7 +1,7 @@ -import * as from<%= classify(name) %> from './<%= dasherize(name) %>.actions'; +import * as <%= classify(name) %>Actions from './<%= dasherize(name) %>.actions'; describe('<%= classify(name) %>', () => { it('should create an instance', () => { - expect(new from<%= classify(name)%>.Load<%= classify(name) %>s()).toBeTruthy(); + expect(new <%= classify(name)%>Actions.Load<%= classify(name) %>s()).toBeTruthy(); }); }); diff --git a/modules/schematics/src/action/index.spec.ts b/modules/schematics/src/action/index.spec.ts index 8d88dde103..226ea558b8 100644 --- a/modules/schematics/src/action/index.spec.ts +++ b/modules/schematics/src/action/index.spec.ts @@ -122,7 +122,7 @@ describe('Action Schematic', () => { `${projectPath}/src/app/foo.actions.spec.ts` ); - expect(fileContent).toMatch(/expect\(new fromFoo.LoadFoos\(\)\)/); + expect(fileContent).toMatch(/expect\(new FooActions.LoadFoos\(\)\)/); }); });