17 lines
471 B
TypeScript
17 lines
471 B
TypeScript
import { HttpInterceptorFn } from '@angular/common/http';
|
|
import { TestBed } from '@angular/core/testing';
|
|
|
|
import { authInterceptor } from './auth.interceptor';
|
|
|
|
describe('authInterceptor', () => {
|
|
const interceptor: HttpInterceptorFn = (req, next) => TestBed.runInInjectionContext(() => authInterceptor(req, next));
|
|
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({});
|
|
});
|
|
|
|
it('should be created', () => {
|
|
expect(interceptor).toBeTruthy();
|
|
});
|
|
});
|