There needs to be a test for the GET /assessments/:assessmentId/submissions/:submissionId route (from the router file), which currently does not exist. We need to test this route to ensure the code written for the test will behave as expected by the protocol we previously defined.
This issue continues the work from issue #515.
Additional Details and Resources
This route requires URL parameters of assessmentId (the ID of a program assessment) and submissionId (the ID of a assessment submission) and expects no body in the request. The response should contain the following:
Facilitator
itemEnvelope({
"curriculum_assessment": CurriculumAssessment, (with 'questions' and 'answers' and correct answers)
"program_assessment": ProgramAssessment,
"assessment_submission": AssessmentSubmission (with 'responses')
});
Participant
itemEnvelope({
"curriculum_assessment": CurriculumAssessment, (with 'questions' and 'answers' and correct answers (only if graded))
"program_assessment": ProgramAssessment,
"assessment_submission": AssessmentSubmission (with 'responses')
});
Correct Project Selected
[X] This issue is linked to the appropriate project
Describe the Feature / Enhancement
There needs to be a test for the GET
/assessments/:assessmentId/submissions/:submissionId
route (from the router file), which currently does not exist. We need to test this route to ensure the code written for the test will behave as expected by the protocol we previously defined.This issue continues the work from issue #515.
Additional Details and Resources
This route requires URL parameters of assessmentId (the ID of a program assessment) and submissionId (the ID of a assessment submission) and expects no body in the request. The response should contain the following:
Facilitator
Participant
Correct Project Selected
Labels