import{TestBed,async}from'@angular/core/testing';import{RouterTestingModule}from'@angular/router/testing';import{AppComponent}from'./app.component';describe('AppComponent',()=>{beforeEach(async(()=>{TestBed.configureTestingModule({imports:[RouterTestingModule],declarations:[AppComponent],}).compileComponents();}));it('should create the app',()=>{constfixture=TestBed.createComponent(AppComponent);constapp=fixture.debugElement.componentInstance;expect(app).toBeTruthy();});it(`should have as title 'wendys-friends'`,()=>{constfixture=TestBed.createComponent(AppComponent);constapp=fixture.debugElement.componentInstance;expect(app.title).toEqual('wendys-friends');});it('should render title',()=>{constfixture=TestBed.createComponent(AppComponent);fixture.detectChanges();constcompiled=fixture.debugElement.nativeElement;expect(compiled.querySelector('.content span').textContent).toContain('wendys-friends app is running!');});});