Tried hand at testing by fixing the spec files with import. However, still many errors and given up now.
25 lines
763 B
TypeScript
25 lines
763 B
TypeScript
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
|
|
import { CostCentreListComponent } from './cost-centre-list.component';
|
|
|
|
describe('CostCentreListComponent', () => {
|
|
let component: CostCentreListComponent;
|
|
let fixture: ComponentFixture<CostCentreListComponent>;
|
|
|
|
beforeEach(fakeAsync(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [RouterTestingModule],
|
|
declarations: [CostCentreListComponent],
|
|
}).compileComponents();
|
|
|
|
fixture = TestBed.createComponent(CostCentreListComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
}));
|
|
|
|
it('should compile', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|