Skip to content

Commit

Permalink
test(api): enriched candidate fixtures with complete values
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDos committed Nov 13, 2024
1 parent 2fe7a98 commit f7ed50b
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions packages/reva-api/test/fixtures/candidate.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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: "[email protected]",
Expand All @@ -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",
};

0 comments on commit f7ed50b

Please sign in to comment.