Chore: Upgraded to Angular v18

This commit is contained in:
tanshu committed 2024-05-31 10:13:42 +05:30
1 parent 6e3c429db3
commit e252680c65
43 files changed
+150 -144

No files matched your search

+3 -3
View File
@@ -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 { AuthService } from './auth.service';
@@ -6,8 +6,8 @@ import { AuthService } from './auth.service';
describe('AuthService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule],
providers: [AuthService],
imports: [],
providers: [AuthService, provideHttpClient(withInterceptorsFromDi())],
});
});
@@ -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 { RouterTestingModule } from '@angular/router/testing';
@@ -10,8 +10,9 @@ describe('LoginComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule, RouterTestingModule],
declarations: [LoginComponent],
imports: [RouterTestingModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
}).compileComponents();
}));
@@ -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 { RouterTestingModule } from '@angular/router/testing';
@@ -10,8 +10,9 @@ describe('LogoutComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule, RouterTestingModule],
declarations: [LogoutComponent],
imports: [RouterTestingModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
}).compileComponents();
}));