Skip to content

Commit

Permalink
Fixed imports for confirm dialog unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Jul 9, 2024
1 parent fbaf588 commit f2d485d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
*/

import { TestBed, ComponentFixture } from '@angular/core/testing';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { ConfirmDialogComponent } from './confirm.dialog';
import { By } from '@angular/platform-browser';
import { CoreTestingModule } from '@alfresco/adf-cor';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { TranslateModule } from '@ngx-translate/core';

describe('Confirm Dialog Component', () => {
let fixture: ComponentFixture<ConfirmDialogComponent>;
Expand All @@ -38,7 +39,7 @@ describe('Confirm Dialog Component', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [CoreTestingModule],
imports: [MatDialogModule, NoopAnimationsModule, TranslateModule.forRoot()],
providers: [
{ provide: MatDialogRef, useValue: dialogRef },
{ provide: MAT_DIALOG_DATA, useValue: data }
Expand Down

0 comments on commit f2d485d

Please sign in to comment.