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