(exam: ExamSubmission)
| 2239 | }); |
| 2240 | |
| 2241 | const submitExam = async (exam: ExamSubmission) => { |
| 2242 | return superRequest('/exam-challenge-completed', { |
| 2243 | method: 'POST', |
| 2244 | setCookies |
| 2245 | }).send({ |
| 2246 | id: examChallengeId, |
| 2247 | challengeType: 17, |
| 2248 | userCompletedExam: exam |
| 2249 | }); |
| 2250 | }; |
| 2251 | |
| 2252 | test('POST handles submitting a failing exam', async () => { |
| 2253 | const now = Date.now(); |
no test coverage detected