cic-staff-client/src/app/_interceptors/error.interceptor.spec.ts

21 lines
558 B
TypeScript

// Core imports
import { TestBed } from '@angular/core/testing';
// Application imports
import { ErrorInterceptor } from '@app/_interceptors/error.interceptor';
import { MatDialogModule } from '@angular/material/dialog';
describe('ErrorInterceptor', () => {
beforeEach(() =>
TestBed.configureTestingModule({
imports: [MatDialogModule],
providers: [ErrorInterceptor],
})
);
it('should be created', () => {
const interceptor: ErrorInterceptor = TestBed.inject(ErrorInterceptor);
expect(interceptor).toBeTruthy();
});
});