From 34c250a04391ab1f7e5be1308216131042a8e086 Mon Sep 17 00:00:00 2001 From: "Yassine R." Date: Tue, 31 Oct 2023 17:04:50 +0100 Subject: [PATCH] fix(test): fix unit test --- .../profil-historique-courriers.component.spec.ts | 1 - .../profil-historique-decisions.component.spec.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-courriers/profil-historique-courriers.component.spec.ts b/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-courriers/profil-historique-courriers.component.spec.ts index 149d06dedc..db6e735b2f 100644 --- a/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-courriers/profil-historique-courriers.component.spec.ts +++ b/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-courriers/profil-historique-courriers.component.spec.ts @@ -23,7 +23,6 @@ describe("ProfilHistoriqueCourriersComponent", () => { ReactiveFormsModule, NgbModule, StoreModule.forRoot({ app: _usagerReducer }), - FormsModule, HttpClientTestingModule, RouterTestingModule, diff --git a/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-decisions/profil-historique-decisions.component.spec.ts b/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-decisions/profil-historique-decisions.component.spec.ts index 39fda70fea..4f92beccda 100644 --- a/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-decisions/profil-historique-decisions.component.spec.ts +++ b/packages/frontend/src/app/modules/usager-profil/components/_historiques/profil-historique-decisions/profil-historique-decisions.component.spec.ts @@ -1,6 +1,7 @@ import { ComponentFixture, TestBed } from "@angular/core/testing"; import { ProfilHistoriqueDecisionsComponent } from "./profil-historique-decisions.component"; +import { UsagerFormModel } from "../../../../usager-shared/interfaces"; describe("ProfilHistoriqueDecisionsComponent", () => { let component: ProfilHistoriqueDecisionsComponent; @@ -13,6 +14,7 @@ describe("ProfilHistoriqueDecisionsComponent", () => { fixture = TestBed.createComponent(ProfilHistoriqueDecisionsComponent); component = fixture.componentInstance; + component.usager = new UsagerFormModel(); fixture.detectChanges(); });