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