diff --git a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts index e277f7015f..5b49254a77 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts @@ -1,7 +1,7 @@ import { OverlayContainer } from '@angular/cdk/overlay'; import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; -import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; +import { ComponentFixture, fakeAsync, flush, TestBed } from '@angular/core/testing'; import { MatLegacyDialog as MatDialog, MatLegacyDialogConfig as MatDialogConfig @@ -52,6 +52,7 @@ describe('ErrorDialogComponent', () => { expect(env.stackTrace).toBeNull(); env.closeButton.click(); + flush(); })); it('should not render "Show details" link when no stack trace', fakeAsync(() => { @@ -64,6 +65,7 @@ describe('ErrorDialogComponent', () => { expect(env.stackTrace).toBeNull(); env.closeButton.click(); + flush(); })); });