Chore: Updated resolvers from Class to ResolveFn
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { ResolveFn } from '@angular/router';
|
||||
|
||||
import { Period } from './period';
|
||||
import { periodResolver } from './period.resolver';
|
||||
|
||||
describe('periodResolver', () => {
|
||||
const executeResolver: ResolveFn<Period> = (...resolverParameters) =>
|
||||
TestBed.runInInjectionContext(() => periodResolver(...resolverParameters));
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(executeResolver).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user