Skip to content

Commit ad9463d

Browse files
committed
Fixed PreviewForm component unit tests
1 parent 393283f commit ad9463d

File tree

2 files changed

+1
-50
lines changed

2 files changed

+1
-50
lines changed

packages/client/src/tests/default.json

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4622,55 +4622,6 @@
46224622
}
46234623
}
46244624
},
4625-
{
4626-
"name": "informantBirthDate",
4627-
"type": "DATE",
4628-
"label": {
4629-
"defaultMessage": "Date of birth",
4630-
"description": "Label for form field: Date of birth",
4631-
"id": "form.field.label.motherDateOfBirth"
4632-
},
4633-
"required": true,
4634-
"customisable": true,
4635-
"initialValue": "",
4636-
"validate": [
4637-
{
4638-
"operation": "dateFormatIsCorrect",
4639-
"parameters": []
4640-
},
4641-
{
4642-
"operation": "dateInPast",
4643-
"parameters": []
4644-
}
4645-
],
4646-
"mapping": {
4647-
"mutation": {
4648-
"operation": "fieldValueNestingTransformer",
4649-
"parameters": [
4650-
"individual",
4651-
{
4652-
"operation": "longDateTransformer",
4653-
"parameters": [
4654-
"birthDate"
4655-
]
4656-
},
4657-
"birthDate"
4658-
]
4659-
},
4660-
"query": {
4661-
"operation": "nestedValueToFieldTransformer",
4662-
"parameters": [
4663-
"individual",
4664-
{
4665-
"operation": "fieldValueTransformer",
4666-
"parameters": [
4667-
"birthDate"
4668-
]
4669-
}
4670-
]
4671-
}
4672-
}
4673-
},
46744625
{
46754626
"name": "firstNamesEng",
46764627
"previewGroup": "informantNameInEnglish",

packages/client/src/views/RegisterForm/PreviewForm.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ describe('when user is previewing the form data', () => {
325325

326326
beforeEach(async () => {
327327
getItem.mockReturnValue(registerScopeToken)
328-
await store.dispatch(checkAuth())
328+
store.dispatch(checkAuth())
329329
await flushPromises()
330330
const data = deathReviewDraftData
331331

0 commit comments

Comments
 (0)