2021-05-12 08:16:38 +02:00
|
|
|
// Core imports
|
2020-12-28 10:06:30 +01:00
|
|
|
import { TestBed } from '@angular/core/testing';
|
|
|
|
|
2021-05-12 08:16:38 +02:00
|
|
|
// Application imports
|
2021-03-15 12:54:46 +01:00
|
|
|
import { ErrorInterceptor } from '@app/_interceptors/error.interceptor';
|
2021-06-25 08:40:29 +02:00
|
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
2020-12-28 10:06:30 +01:00
|
|
|
|
|
|
|
describe('ErrorInterceptor', () => {
|
2021-05-10 18:15:25 +02:00
|
|
|
beforeEach(() =>
|
|
|
|
TestBed.configureTestingModule({
|
2021-06-25 08:40:29 +02:00
|
|
|
imports: [MatDialogModule],
|
2021-05-10 18:15:25 +02:00
|
|
|
providers: [ErrorInterceptor],
|
|
|
|
})
|
|
|
|
);
|
2020-12-28 10:06:30 +01:00
|
|
|
|
|
|
|
it('should be created', () => {
|
|
|
|
const interceptor: ErrorInterceptor = TestBed.inject(ErrorInterceptor);
|
|
|
|
expect(interceptor).toBeTruthy();
|
|
|
|
});
|
|
|
|
});
|