11import { TestBed , async } from '@angular/core/testing' ; < % if ( routing ) { % >
22import { RouterTestingModule } from '@angular/router/testing' ; < % } % >
33import { AppComponent } from './app.component' ;
4-
4+
55describe ( 'AppComponent' , ( ) => {
66 beforeEach ( async ( ( ) => {
77 TestBed . configureTestingModule ( { < % if ( routing ) { % >
@@ -14,22 +14,22 @@ describe('AppComponent', () => {
1414 } ) . compileComponents ( ) ;
1515 } ) ) ;
1616
17- it ( 'should create the app' , async ( ( ) => {
17+ it ( 'should create the app' , ( ) => {
1818 const fixture = TestBed . createComponent ( AppComponent ) ;
1919 const app = fixture . debugElement . componentInstance ;
2020 expect ( app ) . toBeTruthy ( ) ;
21- } ) ) ;
21+ } ) ;
2222
23- it ( `should have as title '<%= name %>'` , async ( ( ) => {
23+ it ( `should have as title '<%= name %>'` , ( ) => {
2424 const fixture = TestBed . createComponent ( AppComponent ) ;
2525 const app = fixture . debugElement . componentInstance ;
2626 expect ( app . title ) . toEqual ( '<%= name %>' ) ;
27- } ) ) ;
27+ } ) ;
2828
29- it ( 'should render title in a h1 tag' , async ( ( ) => {
29+ it ( 'should render title in a h1 tag' , ( ) => {
3030 const fixture = TestBed . createComponent ( AppComponent ) ;
3131 fixture . detectChanges ( ) ;
3232 const compiled = fixture . debugElement . nativeElement ;
3333 expect ( compiled . querySelector ( 'h1' ) . textContent ) . toContain ( 'Welcome to <%= name %>!' ) ;
34- } ) ) ;
34+ } ) ;
3535} ) ;
0 commit comments