You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'There was an error when validating the field timePeriodCoveredStart from metadata block citation. Reason was: The field requires a valid date format (YYYY or YYYY-MM or YYYY-MM-DD).'
165
-
)
166
-
})
167
-
168
-
test('should not raise a date format validation error when a date field has a valid YYYY-MM-DD format',()=>{
test('should raise a date format validation error when a date field has a wrong date format according to the field watermark',()=>{
184
-
consttestDataset=createDatasetDTO(
185
-
undefined,
186
-
undefined,
187
-
undefined,
188
-
undefined,
189
-
undefined,
190
-
undefined,
191
-
'01-03'
192
-
)
193
-
194
-
expect.assertions(6)
195
-
runValidateExpectingFieldValidationError(
196
-
testDataset,
197
-
'dateOfCreation',
198
-
'There was an error when validating the field dateOfCreation from metadata block citation. Reason was: The field requires a valid date format (YYYY-MM-DD).'
199
-
)
200
-
})
201
-
202
-
test('should not raise a date format validation error when a date field has a valid format according to the field watermark',()=>{
0 commit comments