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