Skip to content

Commit

Permalink
Fix Form Seeder Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Jan 19, 2024
1 parent 19a9186 commit f39d7da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions backend/source/forms/example-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"type": 1,
"question_groups": [
{
"id": 11,
"order": 1,
"question_group": "Question Group 01",
"questions": [
{
Expand Down
20 changes: 7 additions & 13 deletions backend/source/forms/example-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"id": 2,
"form": "Test Form 2",
"type": 2,
"approval_instructions": {"text": "test", "action": ["action #1"]},
"approval_instructions": { "text": "test", "action": ["action #1"] },
"question_groups": [
{
"id": 21,
"order": 1,
"question_group": "Question Group 01",
"questions": [
{
Expand All @@ -20,12 +22,9 @@
"question": "Gender",
"meta": false,
"type": "option",
"tooltip": {"text": "test tooltip"},
"tooltip": { "text": "test tooltip" },
"required": true,
"attributes": [
"chart",
"table"
],
"attributes": ["chart", "table"],
"options": [
{
"name": "Male",
Expand Down Expand Up @@ -55,9 +54,7 @@
"question": "Phone Number",
"meta": true,
"type": "number",
"attributes": [
"chart"
],
"attributes": ["chart"],
"required": true,
"monitoring": true
},
Expand All @@ -81,10 +78,7 @@
"meta": true,
"type": "multiple_option",
"required": true,
"attributes": [
"chart",
"table"
],
"attributes": ["chart", "table"],
"options": [
{
"name": "Wife / Husband / Partner"
Expand Down

0 comments on commit f39d7da

Please sign in to comment.