diff --git a/aio/content/examples/testing/src/app/banner/banner-external.component.spec.ts b/aio/content/examples/testing/src/app/banner/banner-external.component.spec.ts index ff7a775fc3..0fd317fe6f 100644 --- a/aio/content/examples/testing/src/app/banner/banner-external.component.spec.ts +++ b/aio/content/examples/testing/src/app/banner/banner-external.component.spec.ts @@ -28,11 +28,9 @@ describe('BannerComponent (external files)', () => { describe('Two beforeEach', () => { // #docregion async-before-each beforeEach(async () => { - TestBed - .configureTestingModule({ - declarations: [ BannerComponent ], - }) - .compileComponents(); // compile template and css + await TestBed.configureTestingModule({ + declarations: [ BannerComponent ], + }).compileComponents(); // compile template and css }); // #enddocregion async-before-each