20 lines
562 B
TypeScript
20 lines
562 B
TypeScript
import { TestBed } from '@angular/core/testing';
|
|
import { ResolveFn } from '@angular/router';
|
|
|
|
import { CostCentre } from '../core/cost-centre';
|
|
|
|
import { costCentreResolver } from './cost-centre.resolver';
|
|
|
|
describe('costCentreResolver', () => {
|
|
const executeResolver: ResolveFn<CostCentre> = (...resolverParameters) =>
|
|
TestBed.runInInjectionContext(() => costCentreResolver(...resolverParameters));
|
|
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({});
|
|
});
|
|
|
|
it('should be created', () => {
|
|
expect(executeResolver).toBeTruthy();
|
|
});
|
|
});
|