From d8b2dc6e08c27dce90f65d32f8dfdd147f927a84 Mon Sep 17 00:00:00 2001 From: Jason McCollum Date: Mon, 5 Feb 2024 10:53:40 -0800 Subject: [PATCH] Update tests --- .../csv-help-dialog/csv-help-dialog.component.spec.ts | 4 ++++ .../scenario-solution-help-dialog.component.spec.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/application/frontend/src/app/core/containers/csv-help-dialog/csv-help-dialog.component.spec.ts b/application/frontend/src/app/core/containers/csv-help-dialog/csv-help-dialog.component.spec.ts index 62bc3f1c..c7b7f2f2 100644 --- a/application/frontend/src/app/core/containers/csv-help-dialog/csv-help-dialog.component.spec.ts +++ b/application/frontend/src/app/core/containers/csv-help-dialog/csv-help-dialog.component.spec.ts @@ -10,6 +10,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CsvHelpDialogComponent } from './csv-help-dialog.component'; +import { MatDialogRef } from '@angular/material/dialog'; describe('CsvHelpDialogComponent', () => { let component: CsvHelpDialogComponent; @@ -18,6 +19,9 @@ describe('CsvHelpDialogComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [CsvHelpDialogComponent], + providers: [ + { provide: MatDialogRef, useValue: {} }, + ] }).compileComponents(); fixture = TestBed.createComponent(CsvHelpDialogComponent); diff --git a/application/frontend/src/app/core/containers/scenario-solution-help-dialog/scenario-solution-help-dialog.component.spec.ts b/application/frontend/src/app/core/containers/scenario-solution-help-dialog/scenario-solution-help-dialog.component.spec.ts index 2935edf4..67ca772a 100644 --- a/application/frontend/src/app/core/containers/scenario-solution-help-dialog/scenario-solution-help-dialog.component.spec.ts +++ b/application/frontend/src/app/core/containers/scenario-solution-help-dialog/scenario-solution-help-dialog.component.spec.ts @@ -10,6 +10,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ScenarioSolutionHelpDialogComponent } from './scenario-solution-help-dialog.component'; +import { MatDialogRef } from '@angular/material/dialog'; describe('ScenarioSolutionHelpDialogComponent', () => { let component: ScenarioSolutionHelpDialogComponent; @@ -18,6 +19,9 @@ describe('ScenarioSolutionHelpDialogComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ScenarioSolutionHelpDialogComponent], + providers: [ + { provide: MatDialogRef, useValue: {} }, + ] }).compileComponents(); fixture = TestBed.createComponent(ScenarioSolutionHelpDialogComponent);