Limpieza de código

This commit is contained in:
Eneko Nieto
2021-01-20 12:53:46 +01:00
parent e57906f583
commit 7c2bc6a3dc
9 changed files with 48 additions and 173 deletions

View File

@@ -1,22 +1,22 @@
import { TestBed, async } from '@angular/core/testing';
import { TestBed, async, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { AppModule } from './app.module';
describe('AppComponent', () => {
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [AppModule]
}).compileComponents();
}));
it('should create the app', async(() => {
it('should create the app', waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
it('should render link to flight in a a tag', async(() => {
it('should render link to flight in a a tag', waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;