Files
brewman/overlord/src/app/employee/employee-detail/employee-detail.component.spec.ts
tanshu cefb3ebdcc Removed old rules from eslint
Tried hand at testing by fixing the spec files with import. However, still many errors and given up now.
2020-10-02 16:24:29 +05:30

29 lines
932 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 { EmployeeDetailComponent } from './employee-detail.component';
describe('EmployeeDetailComponent', () => {
let component: EmployeeDetailComponent;
let fixture: ComponentFixture<EmployeeDetailComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
declarations: [EmployeeDetailComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(EmployeeDetailComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});