bug(tdc.expression_reguliere): invalid regexp should not raise error

This commit is contained in:
mfo 2024-07-15 09:54:44 +02:00
parent 6dc8496d3d
commit 29d36973ba
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -50,7 +50,8 @@ describe Procedure::ErrorsSummary, type: :component do
{ libelle: 'repetition requires children', type: :repetition, children: [] }, { libelle: 'repetition requires children', type: :repetition, children: [] },
{ libelle: 'drop down list requires options', type: :drop_down_list, options: [] }, { libelle: 'drop down list requires options', type: :drop_down_list, options: [] },
{ libelle: 'invalid condition', type: :text, condition: ds_eq(constant(true), constant(1)) }, { libelle: 'invalid condition', type: :text, condition: ds_eq(constant(true), constant(1)) },
{ libelle: 'header sections must have consistent order', type: :header_section, level: 2 } { libelle: 'header sections must have consistent order', type: :header_section, level: 2 },
{ libelle: 'regexp invalid', type: :expression_reguliere, expression_reguliere_exemple_text: 'kthxbye', expression_reguliere: /{/ }
]) ])
end end