Skip to content

Commit

Permalink
Fix failing tests (side effect of the order tests are run with this PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmachapman committed Apr 17, 2024
1 parent ebf0566 commit 345cfa3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(() => {
Expand All @@ -64,6 +65,7 @@ describe('ErrorDialogComponent', () => {
expect(env.stackTrace).toBeNull();

env.closeButton.click();
flush();
}));
});

Expand Down

0 comments on commit 345cfa3

Please sign in to comment.