tanshu
cefb3ebdcc
Tried hand at testing by fixing the spec files with import. However, still many errors and given up now.
29 lines
868 B
TypeScript
29 lines
868 B
TypeScript
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
|
|
import { IssueComponent } from './issue.component';
|
|
|
|
describe('IssueComponent', () => {
|
|
let component: IssueComponent;
|
|
let fixture: ComponentFixture<IssueComponent>;
|
|
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
|
|
declarations: [IssueComponent],
|
|
}).compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(IssueComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|