Tried hand at testing by fixing the spec files with import. However, still many errors and given up now.
19 lines
590 B
TypeScript
19 lines
590 B
TypeScript
import { inject, TestBed } from '@angular/core/testing';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
|
|
import { ClientListResolver } from './client-list-resolver.service';
|
|
|
|
describe('ClientListResolver', () => {
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [HttpClientModule, RouterTestingModule],
|
|
providers: [ClientListResolver],
|
|
});
|
|
});
|
|
|
|
it('should be created', inject([ClientListResolver], (service: ClientListResolver) => {
|
|
expect(service).toBeTruthy();
|
|
}));
|
|
});
|