diff --git a/src/modules/applications/components/applications-item-detail/applications-item-detail.component.spec.ts b/src/modules/applications/components/applications-item-detail/applications-item-detail.component.spec.ts
index c92cc679..a63ea31a 100644
--- a/src/modules/applications/components/applications-item-detail/applications-item-detail.component.spec.ts
+++ b/src/modules/applications/components/applications-item-detail/applications-item-detail.component.spec.ts
@@ -4,13 +4,14 @@ import { RouterModule } from '@angular/router';
import { SharedModule } from '@shared/shared.module';
import { ApplicationsItemDetailComponent } from './applications-item-detail.component';
-import { HttpClient, HttpHandler } from '@angular/common/http';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
import { LoaderStateService, InfluxDBService } from '@core/services';
import { HttpService } from '@core/services/http';
import { MetricsService } from '@core/services/metrics/metrics.service';
import { DialogService } from '@dialog/dialog.service';
-import { Store } from '@ngrx/store';
+import { application } from '@testing/factories/application';
import { MockStoreProvider } from '@testing/mocks';
+import { of } from 'rxjs';
describe('ApplicationsItemDetailComponent', () => {
let component: ApplicationsItemDetailComponent;
@@ -23,6 +24,7 @@ describe('ApplicationsItemDetailComponent', () => {
SharedModule,
RouterModule,
SharedModule,
+ HttpClientTestingModule,
],
providers: [
MockStoreProvider,
@@ -30,8 +32,6 @@ describe('ApplicationsItemDetailComponent', () => {
MetricsService,
LoaderStateService,
InfluxDBService,
- HttpHandler,
- HttpClient,
HttpService,
],
})
@@ -41,6 +41,8 @@ describe('ApplicationsItemDetailComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(ApplicationsItemDetailComponent);
component = fixture.componentInstance;
+ component.application$ = of(application);
+
fixture.detectChanges();
});
diff --git a/src/modules/applications/components/applications-stage-detail/applications-stage-detail.component.spec.ts b/src/modules/applications/components/applications-stage-detail/applications-stage-detail.component.spec.ts
index c68daed2..3eb6ffbb 100644
--- a/src/modules/applications/components/applications-stage-detail/applications-stage-detail.component.spec.ts
+++ b/src/modules/applications/components/applications-stage-detail/applications-stage-detail.component.spec.ts
@@ -25,8 +25,7 @@ describe('ApplicationsStageDetailComponent', () => {
MockStoreProvider,
DialogService,
],
- })
- .compileComponents();
+ }).compileComponents();
}));
beforeEach(() => {
diff --git a/src/modules/applications/components/dialogs/dialog-add-application/dialog-add-application.component.spec.ts b/src/modules/applications/components/dialogs/dialog-add-application/dialog-add-application.component.spec.ts
index 35643e05..bae04910 100644
--- a/src/modules/applications/components/dialogs/dialog-add-application/dialog-add-application.component.spec.ts
+++ b/src/modules/applications/components/dialogs/dialog-add-application/dialog-add-application.component.spec.ts
@@ -33,8 +33,7 @@ describe('DialogAddApplicationComponent', () => {
MockStoreProvider,
CustomValidatorsService,
],
- })
- .compileComponents();
+ }).compileComponents();
}));
beforeEach(() => {
diff --git a/src/modules/applications/components/dialogs/dialog-update-application/dialog-update-application.component.html b/src/modules/applications/components/dialogs/dialog-update-application/dialog-update-application.component.html
index 631d4859..76c93475 100644
--- a/src/modules/applications/components/dialogs/dialog-update-application/dialog-update-application.component.html
+++ b/src/modules/applications/components/dialogs/dialog-update-application/dialog-update-application.component.html
@@ -1,4 +1,4 @@
-