fix: maximum years value interval for duration #1118
Annotations
3 errors
src/utils/validation/validate.spec.jsx > Special validation for duration > should validate have right rules for duration (PnYnM) question (required):
src/utils/validation/validate.spec.jsx#L66
Error: Snapshot `Special validation for duration > should validate have right rules for duration (PnYnM) question (required) 1` mismatched
- Expected
+ Received
@@ -41,22 +41,10 @@
],
"path": "responseFormat.SIMPLE.DURATION.mayears",
},
{
"errors": [
- "Must be at least 0",
- ],
- "path": "responseFormat.SIMPLE.DURATION.mayears",
- },
- {
- "errors": [
- "Must be at most 11",
- ],
- "path": "responseFormat.SIMPLE.DURATION.mayears",
- },
- {
- "errors": [
"Mandatory field",
],
"path": "responseFormat.SIMPLE.DURATION.miyears",
},
]
❯ src/utils/validation/validate.spec.jsx:66:30
|
src/utils/validation/validation-rules.spec.jsx > duration rules validation > should validate have right rules for "PnYnM" format:
src/utils/validation/validation-rules.spec.jsx#L62
AssertionError: expected 1 to be 3 // Object.is equality
- Expected
+ Received
- 3
+ 1
❯ src/utils/validation/validation-rules.spec.jsx:62:7
|
Test
Process completed with exit code 1.
|