auth.guard.spec.ts 461 B

1234567891011121314151617
  1. import { TestBed } from '@angular/core/testing';
  2. import { CanActivateFn } from '@angular/router';
  3. import { authGuard } from './auth.guard';
  4. describe('authGuard', () => {
  5. const executeGuard: CanActivateFn = (...guardParameters) =>
  6. TestBed.runInInjectionContext(() => authGuard(...guardParameters));
  7. beforeEach(() => {
  8. TestBed.configureTestingModule({});
  9. });
  10. it('should be created', () => {
  11. expect(executeGuard).toBeTruthy();
  12. });
  13. });