@@ -64,24 +64,24 @@ describe('Karma Builder', () => {
6464 }
6565 ` ,
6666 'src/app/app.component.spec.ts' : `
67- import { TestBed, async } from '@angular/core/testing';
67+ import { TestBed } from '@angular/core/testing';
6868 import { AppComponent } from './app.component';
6969
7070 describe('AppComponent', () => {
71- beforeEach(async( () => {
72- TestBed.configureTestingModule({
71+ beforeEach(async () => {
72+ await TestBed.configureTestingModule({
7373 imports: [
7474 ],
7575 declarations: [
7676 AppComponent
7777 ]
7878 }).compileComponents();
79- })) ;
79+ });
8080
81- it('should not contain text that is hidden via css', async( () => {
81+ it('should not contain text that is hidden via css', () => {
8282 const fixture = TestBed.createComponent(AppComponent);
8383 expect(fixture.nativeElement.innerText).not.toContain('Hello World');
84- })) ;
84+ });
8585 });` ,
8686 } ) ;
8787
@@ -143,27 +143,27 @@ describe('Karma Builder', () => {
143143 }
144144 }` ,
145145 'src/app/app.component.spec.ts' : `
146- import { TestBed, async } from '@angular/core/testing';
146+ import { TestBed } from '@angular/core/testing';
147147 import { HttpClientModule } from '@angular/common/http';
148148 import { AppComponent } from './app.component';
149149
150150 describe('AppComponent', () => {
151- beforeEach(async( () => {
152- TestBed.configureTestingModule({
151+ beforeEach(async () => {
152+ await TestBed.configureTestingModule({
153153 imports: [
154154 HttpClientModule
155155 ],
156156 declarations: [
157157 AppComponent
158158 ]
159159 }).compileComponents();
160- })) ;
160+ });
161161
162- it('should create the app', async( () => {
162+ it('should create the app', () => {
163163 const fixture = TestBed.createComponent(AppComponent);
164164 const app = fixture.debugElement.componentInstance;
165165 expect(app).toBeTruthy();
166- })) ;
166+ });
167167 });` ,
168168 } ) ;
169169
0 commit comments