Commit 8cb5478
authored
chore(DF-832): bump @defra/forms-model to 3.0.648 (DF-832) (#791)
* chore(deps): bump @defra/forms-model to 3.0.648 (DF-832)
Picks up DF-832 payment changes:
- feat(model): add conditional amounts and email prepopulation to PaymentField (#1384)
- fix(model): update paymentAmountSchema min to 0 (#1397)
Enables saving PaymentField forms with options.amount: 0 (no payment by
default) and accepts conditionalAmounts / emailField options.
DF-832
* test(definition): update payment amount tests for min(0) schema (DF-832)
paymentAmountSchema minimum changed from 0.3 to 0 in
@defra/forms-model 3.0.648. Update assertions to match new semantics:
- "greater than or equal to 0.3" error message → "0"
- amount: 0 (no payment) now valid
- amount: 0.1 now valid
- Added 0 as the new minimum boundary test case
DF-8321 parent 4624e57 commit 8cb5478
3 files changed
Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
206 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments