Chore: Upgraded to Angular v18
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { PurchasesService } from './purchases.service';
|
||||
@ -6,8 +6,8 @@ import { PurchasesService } from './purchases.service';
|
||||
describe('PurchasesService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule],
|
||||
providers: [PurchasesService],
|
||||
imports: [],
|
||||
providers: [PurchasesService, provideHttpClient(withInterceptorsFromDi())],
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user