Initial commit
This commit is contained in:
17
src/app/admin.guard.spec.ts
Normal file
17
src/app/admin.guard.spec.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { CanActivateChildFn } from '@angular/router';
|
||||
|
||||
import { adminGuard } from './admin.guard';
|
||||
|
||||
describe('adminGuard', () => {
|
||||
const executeGuard: CanActivateChildFn = (...guardParameters) =>
|
||||
TestBed.runInInjectionContext(() => adminGuard(...guardParameters));
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(executeGuard).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user