refactor(champ): move champ value format methods from TypeDeChamp class to instance
This commit is contained in:
parent
cdaa94d5f6
commit
02934188b4
44 changed files with 468 additions and 523 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue