File tree 2 files changed +8
-3
lines changed
packages/angular-cli/blueprints/ng2/files/__path__/app
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* tslint:disable:no-unused-variable */
2
2
3
- import { TestBed , async } from '@angular/core/testing' ;
3
+ import { TestBed , async } from '@angular/core/testing' ; < % if ( routing ) { % >
4
+ import { RouterTestingModule } from '@angular/router/testing' ; < % } % >
4
5
import { AppComponent } from './app.component' ;
5
6
6
7
describe ( 'AppComponent' , ( ) => {
7
8
beforeEach ( ( ) => {
8
- TestBed . configureTestingModule ( {
9
+ TestBed . configureTestingModule ( { < % if ( routing ) { % >
10
+ imports : [
11
+ RouterTestingModule
12
+ ] , < % } % >
9
13
declarations : [
10
14
AppComponent
11
15
] ,
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import { APP_SHELL_DIRECTIVES } from '@angular/app-shell';<% } %>
6
6
template : `
7
7
<h1>
8
8
{{title}}
9
- </h1>
9
+ </h1><% if (routing) { %>
10
+ <router-outlet></router-outlet><% } %>
10
11
` , < % } else { % >
11
12
templateUrl : './app.component.html' , < % } % > < % if ( inlineStyle ) { % >
12
13
styles : [ ] < % } else { % >
You can’t perform that action at this time.
0 commit comments