-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ajoute les types de scolarités "maternelle" et "primaire" #4487
Ajoute les types de scolarités "maternelle" et "primaire" #4487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ajouter un test unitaire dans unit/openfisca/mapping/dispatch-individuals.spec.ts
afin de vérifier que la valeur primaire et/ou maternelle est bien mappé en utilisant la constante mis en place.
Le test n'a pas été fait pour les autres cas mais je pense que ça peut être intéressant à faire pour cet ajout spécifique. Qu'en penses-tu ?
Et pourquoi pas ajouter un test cypress si on a une aide compatible avec cette situation dans famille.
J'ai ajouté un test unitaire, tu me diras si c'est à cela que tu pensais
C'est possible d'en ajouter un dans la PR pour l'aide à la rentrée scolaire |
expect(result.foyers_fiscaux.conjoint.declarants).toEqual([ | ||
situation.conjoint.id, | ||
]) | ||
}) | ||
it("checks scolarite enfant_a_charge", function () { | ||
expect(result.individus.demandeur.enfant_a_charge.scolarite).toEqual( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quelle est la différence entre enfants: [{ id: "e1" }],
et situation.demandeur.enfant_a_charge.scolarite
J'ai l'impression que la première option est la plus probable non ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est corrigé
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

C'est l'objectif de cette tâche oui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approuvé avec la validation de ma suggestion @Shamzic
cf #4424