refactor(champ): move champ value format methods from TypeDeChamp class to instance

This commit is contained in:
Paul Chavard 2024-10-21 11:51:34 +02:00
parent cdaa94d5f6
commit 02934188b4
No known key found for this signature in database
44 changed files with 468 additions and 523 deletions

View file

@ -519,7 +519,7 @@ describe API::V2::GraphqlController do
{
id: champ.to_typed_id,
label: champ.libelle,
stringValue: champ.for_api_v2
stringValue: champ.type_de_champ.champ_value_for_api(champ)
}
end
expect(gql_data[:dossier][:champs]).to match_array(expected_champs)