Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeating initial values fix #2016

Merged
merged 8 commits into from
Jun 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix failing test
  • Loading branch information
maimoonak committed May 30, 2023
commit 282e29fa216c128557bc4cbffbbdf94b9c120c86
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class QuestionnaireViewModelTest {
}

@Test
fun `should set the first of multiple initial values`() {
fun `should set all of multiple initial values`() {
val questionnaire =
Questionnaire().apply {
id = "a-questionnaire"
Expand Down Expand Up @@ -415,6 +415,11 @@ class QuestionnaireViewModelTest {
value = BooleanType(true)
}
)
addAnswer(
QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent().apply {
value = BooleanType(true)
}
)
}
)
}
Expand Down