diff --git a/src/app/modules/info/dialogs/info/info.component.spec.ts b/src/app/modules/info/dialogs/info/info.component.spec.ts index 3a709caa..7495aa24 100644 --- a/src/app/modules/info/dialogs/info/info.component.spec.ts +++ b/src/app/modules/info/dialogs/info/info.component.spec.ts @@ -1,4 +1,5 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { MatDialogRef } from '@angular/material/dialog'; import { InfoDialogComponent } from './info.component'; @@ -8,7 +9,10 @@ describe('InfoComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ InfoDialogComponent ] + declarations: [ InfoDialogComponent ], + providers: [ + {provide: MatDialogRef, useValue: {}} + ] }) .compileComponents(); diff --git a/src/app/modules/info/shared/info.service.spec.ts b/src/app/modules/info/shared/info.service.spec.ts index 0b18632c..da776043 100644 --- a/src/app/modules/info/shared/info.service.spec.ts +++ b/src/app/modules/info/shared/info.service.spec.ts @@ -1,4 +1,5 @@ import { TestBed } from '@angular/core/testing'; +import { MatDialog } from '@angular/material/dialog'; import { InfoService } from './info.service'; @@ -6,7 +7,11 @@ describe('InfoService', () => { let service: InfoService; beforeEach(() => { - TestBed.configureTestingModule({}); + TestBed.configureTestingModule({ + providers: [ + {provide: MatDialog, useValue: {}} + ] + }); service = TestBed.inject(InfoService); });