File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/schematics/angular/application/other-files Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11import { TestBed , async } from '@angular/core/testing' ; < % if ( routing ) { % >
22import { RouterTestingModule } from '@angular/router/testing' ; < % } % >
33import { AppComponent } from './app.component' ;
4+
45describe ( 'AppComponent' , ( ) => {
56 beforeEach ( async ( ( ) => {
67 TestBed . configureTestingModule ( { < % if ( routing ) { % >
@@ -12,16 +13,19 @@ describe('AppComponent', () => {
1213 ] ,
1314 } ) . compileComponents ( ) ;
1415 } ) ) ;
16+
1517 it ( 'should create the app' , async ( ( ) => {
1618 const fixture = TestBed . createComponent ( AppComponent ) ;
1719 const app = fixture . debugElement . componentInstance ;
1820 expect ( app ) . toBeTruthy ( ) ;
1921 } ) ) ;
22+
2023 it ( `should have as title '<%= name %>'` , async ( ( ) => {
2124 const fixture = TestBed . createComponent ( AppComponent ) ;
2225 const app = fixture . debugElement . componentInstance ;
2326 expect ( app . title ) . toEqual ( '<%= name %>' ) ;
2427 } ) ) ;
28+
2529 it ( 'should render title in a h1 tag' , async ( ( ) => {
2630 const fixture = TestBed . createComponent ( AppComponent ) ;
2731 fixture . detectChanges ( ) ;
You can’t perform that action at this time.
0 commit comments