import { NO_ERRORS_SCHEMA } from '@angular/core' ; import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { AppComponent } from './app.component' ; describe ( 'AppComponent' , ( ) => { let comp ; let fixture ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { declarations : [ AppComponent ] , schemas : [ NO_ERRORS_SCHEMA ] } ) ; fixture = TestBed . createComponent ( AppComponent ) ; comp = fixture . componentInstance ; } ) ; it ( 'can load instance' , ( ) => { expect ( comp ) . toBeTruthy ( ) ; } ) ; } ) ;