import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MatDialogModule } from '@angular/material/dialog'; import { PurchaseDialogComponent } from './purchase-dialog.component'; describe('PurchaseDialogComponent', () => { let component: PurchaseDialogComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [MatDialogModule, PurchaseDialogComponent], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(PurchaseDialogComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });