From 303e9b63edc38a853001a3f5801c37aa3c9ed653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Burkard?= Date: Wed, 17 Jul 2024 15:51:44 +0200 Subject: [PATCH] fix default birthdate --- .../adapters/primary/routers/convention/convention.e2e.test.ts | 2 +- .../BroadcastToPoleEmploiOnConventionUpdates.unit.test.ts | 2 ++ shared/src/convention/ConventionDtoBuilder.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/back/src/adapters/primary/routers/convention/convention.e2e.test.ts b/back/src/adapters/primary/routers/convention/convention.e2e.test.ts index e56c30575b..34127a9b50 100644 --- a/back/src/adapters/primary/routers/convention/convention.e2e.test.ts +++ b/back/src/adapters/primary/routers/convention/convention.e2e.test.ts @@ -550,7 +550,7 @@ describe("convention e2e", () => { dateDebut: "2021-01-06T00:00:00.000Z", dateDemande: "2021-01-04T00:00:00.000Z", dateFin: "2021-01-15T00:00:00.000Z", - dateNaissance: "2002-10-05T14:48:00.000Z", + dateNaissance: "2002-10-05T00:00:00.000Z", descriptionPreventionSanitaire: "fourniture de gel", dureeImmersion: 70, email: "beneficiary@email.fr", diff --git a/back/src/domains/convention/use-cases/broadcast/BroadcastToPoleEmploiOnConventionUpdates.unit.test.ts b/back/src/domains/convention/use-cases/broadcast/BroadcastToPoleEmploiOnConventionUpdates.unit.test.ts index 7ef79cbd14..f60b898c36 100644 --- a/back/src/domains/convention/use-cases/broadcast/BroadcastToPoleEmploiOnConventionUpdates.unit.test.ts +++ b/back/src/domains/convention/use-cases/broadcast/BroadcastToPoleEmploiOnConventionUpdates.unit.test.ts @@ -154,6 +154,7 @@ describe("Broadcasts events to pole-emploi", () => { romeCode: "A1111", romeLabel: "some Rome", }) + .withBeneficiaryBirthdate("2000-10-05") .withStatus("ACCEPTED_BY_VALIDATOR") .withFederatedIdentity({ provider: "peConnect", token: "some-id" }) .withDateStart("2021-05-12") @@ -174,6 +175,7 @@ describe("Broadcasts events to pole-emploi", () => { dureeImmersion: 21, dateDebut: "2021-05-12T00:00:00.000Z", dateFin: "2021-05-14T00:30:00.000Z", + dateNaissance: "2000-10-05T00:00:00.000Z", statut: "DEMANDE_VALIDÉE", codeAppellation: "011111", }); diff --git a/shared/src/convention/ConventionDtoBuilder.ts b/shared/src/convention/ConventionDtoBuilder.ts index 88fa4d47f7..56ece24313 100644 --- a/shared/src/convention/ConventionDtoBuilder.ts +++ b/shared/src/convention/ConventionDtoBuilder.ts @@ -58,7 +58,7 @@ const beneficiary: Beneficiary<"immersion"> = { emergencyContactPhone: "+33663567896", emergencyContactEmail: "clariss.ocon@emergencycontact.com", financiaryHelp: "Un stage rémunéré au SMIC?", - birthdate: "2002-10-05T14:48:00.000Z", + birthdate: "2002-10-05", }; const establishmentTutor: EstablishmentTutor = {