@@ -270,24 +270,23 @@ class DataCollectionFragmentTest : BaseHiltTest() {
270270 }
271271
272272 @Test
273- fun `Does not load draft if it references missing job` () =
274- runWithTestDispatcher {
275- setupFragment()
273+ fun `Does not load draft if it references missing job` () = runWithTestDispatcher {
274+ setupFragment()
276275
277- runner().inputText(TASK_1_RESPONSE ).clickNextButton()
276+ runner().inputText(TASK_1_RESPONSE ).clickNextButton()
278277
279- // Verify draft was saved
280- val draftId = submissionRepository.getDraftSubmissionsId()
281- assertThat(draftId).isNotEmpty()
282- assertThat(submissionRepository.countDraftSubmissions()).isEqualTo(1 )
278+ // Verify draft was saved
279+ val draftId = submissionRepository.getDraftSubmissionsId()
280+ assertThat(draftId).isNotEmpty()
281+ assertThat(submissionRepository.countDraftSubmissions()).isEqualTo(1 )
283282
284- // Simulate deleting the job from the submission
285- val surveyWithMissingJob = SURVEY .copy(jobMap = emptyMap())
283+ // Simulate deleting the job from the submission
284+ val surveyWithMissingJob = SURVEY .copy(jobMap = emptyMap())
286285
287- // Attempt to get draft with the survey that's missing the job
288- val result = submissionRepository.getDraftSubmission(draftId, surveyWithMissingJob)
289- assertThat(result).isNull()
290- }
286+ // Attempt to get draft with the survey that's missing the job
287+ val result = submissionRepository.getDraftSubmission(draftId, surveyWithMissingJob)
288+ assertThat(result).isNull()
289+ }
291290
292291 @Test
293292 fun `Clicking done on final task saves the submission` () = runWithTestDispatcher {
0 commit comments