angular simple matdialog MAT_DIALOG_DATA code example
Example: angular MatDialogRef spec
Import {MatdialogModule,MatDialogRef} from '@angular/material/dialog';
TestBed.configureTestingModule({
declarations: [componentName],
imports: [MatdialogModule],
providers: [{provide : MatDialogRef, useValue : {}}]
});