Skip to content

Commit 48985cf

Browse files
author
AvidDollars
committed
add missing providers in testing module
1 parent dec3ccd commit 48985cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/app/main-area/main-area.component.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
22

33
import { MainAreaComponent } from './main-area.component';
44
import { provideExperimentalZonelessChangeDetection } from '@angular/core';
5+
import { provideHttpClientTesting } from '@angular/common/http/testing';
6+
import { provideHttpClient } from '@angular/common/http';
57

68
describe('MainAreaComponent', () => {
79
let component: MainAreaComponent;
@@ -11,7 +13,9 @@ describe('MainAreaComponent', () => {
1113
await TestBed.configureTestingModule({
1214
imports: [MainAreaComponent],
1315
providers: [
14-
provideExperimentalZonelessChangeDetection()
16+
provideExperimentalZonelessChangeDetection(),
17+
provideHttpClient(),
18+
provideHttpClientTesting(),
1519
]
1620
})
1721
.compileComponents();

0 commit comments

Comments
 (0)