Chore: Upgraded to Angular v18
This commit is contained in:
1 parent
6e3c429db3
commit
e252680c65
43 files changed
+150
-144
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
@@ -11,8 +11,9 @@ describe('LedgerComponent', () => {
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule],
|
||||
declarations: [LedgerComponent],
|
||||
imports: [ReactiveFormsModule, RouterTestingModule],
|
||||
providers: [provideHttpClient(withInterceptorsFromDi())],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
|
||||
@@ -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 { LedgerService } from './ledger.service';
|
||||
@@ -6,8 +6,8 @@ import { LedgerService } from './ledger.service';
|
||||
describe('LedgerService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule],
|
||||
providers: [LedgerService],
|
||||
imports: [],
|
||||
providers: [LedgerService, provideHttpClient(withInterceptorsFromDi())],
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user