diff --git a/packages/@angular/cli/blueprints/guard/files/__path__/__name__.guard.spec.ts b/packages/@angular/cli/blueprints/guard/files/__path__/__name__.guard.spec.ts index 4e7c04f42cd7..fbf8ae80186e 100644 --- a/packages/@angular/cli/blueprints/guard/files/__path__/__name__.guard.spec.ts +++ b/packages/@angular/cli/blueprints/guard/files/__path__/__name__.guard.spec.ts @@ -1,6 +1,5 @@ -/* tslint:disable:no-unused-variable */ - import { TestBed, async, inject } from '@angular/core/testing'; + import { <%= classifiedModuleName %>Guard } from './<%= dasherizedModuleName %>.guard'; describe('<%= classifiedModuleName %>Guard', () => { diff --git a/packages/@angular/cli/blueprints/module/files/__path__/__name__.module.ts b/packages/@angular/cli/blueprints/module/files/__path__/__name__.module.ts index 2505c216531f..2fadb7236d50 100644 --- a/packages/@angular/cli/blueprints/module/files/__path__/__name__.module.ts +++ b/packages/@angular/cli/blueprints/module/files/__path__/__name__.module.ts @@ -1,5 +1,6 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common';<% if (routing) { %> + import { <%= classifiedModuleName %>RoutingModule } from './<%= dasherizedModuleName %>-routing.module';<% } %> @NgModule({ diff --git a/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.spec.ts b/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.spec.ts index e678a762c761..7f6fef4348cd 100644 --- a/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.spec.ts +++ b/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.spec.ts @@ -1,5 +1,6 @@ import { TestBed, async } from '@angular/core/testing';<% if (routing) { %> import { RouterTestingModule } from '@angular/router/testing';<% } %> + import { AppComponent } from './app.component'; describe('AppComponent', () => { diff --git a/packages/@angular/cli/blueprints/ng/files/__path__/app/app.module.ts b/packages/@angular/cli/blueprints/ng/files/__path__/app/app.module.ts index 51485d6538e3..d1993885a14f 100644 --- a/packages/@angular/cli/blueprints/ng/files/__path__/app/app.module.ts +++ b/packages/@angular/cli/blueprints/ng/files/__path__/app/app.module.ts @@ -1,9 +1,9 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { HttpModule } from '@angular/http';<% if (routing) { %> +import { HttpModule } from '@angular/http'; +<% if (routing) { %> import { AppRoutingModule } from './app-routing.module';<% } %> - import { AppComponent } from './app.component'; @NgModule({ diff --git a/packages/@angular/cli/blueprints/service/files/__path__/__name__.service.spec.ts b/packages/@angular/cli/blueprints/service/files/__path__/__name__.service.spec.ts index 5aca59a2a5b7..19fab2e41f9a 100644 --- a/packages/@angular/cli/blueprints/service/files/__path__/__name__.service.spec.ts +++ b/packages/@angular/cli/blueprints/service/files/__path__/__name__.service.spec.ts @@ -1,4 +1,5 @@ import { TestBed, inject } from '@angular/core/testing'; + import { <%= classifiedModuleName %>Service } from './<%= dasherizedModuleName %>.service'; describe('<%= classifiedModuleName %>Service', () => {