Skip to content

Commit

Permalink
fix(api): createMaisonMereAapHelper now creates an active and legally…
Browse files Browse the repository at this point in the history
… up to date maison mere
  • Loading branch information
agarbe committed Nov 22, 2024
1 parent c000bfd commit 0ba0ac2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ test("find maison mere by collaborateur email", async () => {
});

test("find maison mere by text filters and legal validation status", async () => {
const mmAap = await createMaisonMereAapHelper();
const mmAap = await createMaisonMereAapHelper({
statutValidationInformationsJuridiquesMaisonMereAAP: "A_METTRE_A_JOUR", //should not be found in results
});
const response = await injectGraphqlGetMaisonMereAAPs({
searchFilter: mmAap.raisonSociale,
legalValidationStatus:
Expand Down
2 changes: 1 addition & 1 deletion packages/reva-api/modules/referential/referential.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ test("should have 208 certifications available in total", async () => {
* Test search certifications by an organism for reorientation purpose
*/

test.skip("should have only certifications handle by expertBranche", async () => {
test("should have only certifications handle by expertBranche", async () => {
await createCertifications();

const particulierEmployeur =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export const createMaisonMereAapHelper = async (

return prismaClient.maisonMereAAP.create({
data: {
isActive: true,
statutValidationInformationsJuridiquesMaisonMereAAP: "A_JOUR",
raisonSociale: faker.company.name(),
siret: faker.string.nanoid(14),
statutJuridique: LegalStatus.ASSOCIATION_LOI_1901,
Expand Down

0 comments on commit 0ba0ac2

Please sign in to comment.