From da1a868ec246f4c25f57020ed29706bb2975276a Mon Sep 17 00:00:00 2001 From: Sam Severance Date: Wed, 26 May 2021 08:31:14 -0400 Subject: [PATCH] docs: add missing `await` to `BannerComponent` unit test (#42336) PR Close #42336 --- .../src/app/banner/banner-external.component.spec.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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