18 lines
463 B
TypeScript
18 lines
463 B
TypeScript
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()
|
|
})
|
|
})
|