Chore: Updated resolvers from Class to ResolveFn
This commit is contained in:
1 parent
6f433ef203
commit
6e3c429db3
255 files changed
+1737
-2155
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { ResolveFn } from '@angular/router';
|
||||
|
||||
import { Account } from '../core/account';
|
||||
|
||||
import { paymentAccountsResolver } from './payment-accounts.resolver';
|
||||
|
||||
describe('paymentAccountsResolver', () => {
|
||||
const executeResolver: ResolveFn<Account[]> = (...resolverParameters) =>
|
||||
TestBed.runInInjectionContext(() => paymentAccountsResolver(...resolverParameters));
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(executeResolver).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user