From f7ed50be771b2af8aefa2f0c1bb9dea2b6f57990 Mon Sep 17 00:00:00 2001 From: ThomasDos Date: Wed, 13 Nov 2024 15:18:25 +0100 Subject: [PATCH] test(api): enriched candidate fixtures with complete values --- packages/reva-api/test/fixtures/candidate.ts | 33 ++++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/packages/reva-api/test/fixtures/candidate.ts b/packages/reva-api/test/fixtures/candidate.ts index 7847f2a66..85148f85b 100644 --- a/packages/reva-api/test/fixtures/candidate.ts +++ b/packages/reva-api/test/fixtures/candidate.ts @@ -1,10 +1,10 @@ -import { Gender } from "@prisma/client"; +import { Candidate, Gender } from "@prisma/client"; const GENDER_MAN = "man" as Gender; const GENDER_WOMAN = "woman" as Gender; const DATE_NOW = new Date(); -export const CANDIDATE_MAN = { +export const CANDIDATE_MAN: Candidate = { id: "00000000-0000-0000-0000-000000000001", firstname: "John", lastname: "Doe", @@ -18,9 +18,23 @@ export const CANDIDATE_MAN = { vulnerabilityIndicatorId: null, createdAt: DATE_NOW, updatedAt: null, + departmentId: "00000000-0000-0000-0000-000000000004", + birthDepartmentId: null, + birthdate: new Date("1975-03-15"), + birthCity: "Lyon", + countryId: null, + nationality: "Française", + highestDegreeLabel: "CAP", + niveauDeFormationLePlusEleveDegreeId: null, + street: "42 rue des Roses", + city: "Lyon", + zip: "69001", + addressComplement: "Bâtiment A", + givenName: "John Paul Robert", }; -export const CANDIDATE_WOMAN = { +export const CANDIDATE_WOMAN: Candidate = { + id: "00000000-0000-0000-0000-000000000005", firstname: "Jane", lastname: "Doe", email: "jane.doe@test.com", @@ -33,4 +47,17 @@ export const CANDIDATE_WOMAN = { vulnerabilityIndicatorId: null, createdAt: DATE_NOW, updatedAt: null, + departmentId: "00000000-0000-0000-0000-000000000004", + birthDepartmentId: null, + birthdate: new Date("1980-01-01"), + birthCity: "Paris", + countryId: null, + nationality: "Française", + highestDegreeLabel: "Baccalauréat", + niveauDeFormationLePlusEleveDegreeId: null, + street: "123 rue des Lilas", + city: "Paris", + zip: "75001", + addressComplement: "Appartement 4B", + givenName: "Jane Betty Catherine", };