18 lines
509 B
TypeScript
18 lines
509 B
TypeScript
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
import { inject, TestBed } from '@angular/core/testing';
|
|
|
|
import { AuthService } from './auth.service';
|
|
|
|
describe('AuthService', () => {
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [],
|
|
providers: [AuthService, provideHttpClient(withInterceptorsFromDi())],
|
|
});
|
|
});
|
|
|
|
it('should be created', inject([AuthService], (service: AuthService) => {
|
|
expect(service).toBeTruthy();
|
|
}));
|
|
});
|