Skip to content

Commit

Permalink
updated test files
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyakhajanchi committed Oct 3, 2023
1 parent 5c960f5 commit 48a12fb
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatDialogModule, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';

import { EquivalentGcloudCommandComponent } from './equivalent-gcloud-command.component';

Expand All @@ -8,7 +9,21 @@ describe('EquivalentGcloudCommandComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ EquivalentGcloudCommandComponent ]
declarations: [ EquivalentGcloudCommandComponent ],
imports: [MatDialogModule],
providers: [
{
provide: MatDialogRef,
useValue: {
close: () => {},
},
},
{
provide: MAT_DIALOG_DATA,
useValue: {
}
}
],
})
.compileComponents();
});
Expand Down

0 comments on commit 48a12fb

Please sign in to comment.