({ commit }, { examId, codeLanguage, duration })
| 29 | }, |
| 30 | |
| 31 | async startExam ({ commit }, { examId, codeLanguage, duration }) { |
| 32 | const response = await startExam(examId, { codeLanguage, duration }) |
| 33 | commit('updateUserExam', { |
| 34 | examId, |
| 35 | userExam: response, |
| 36 | }) |
| 37 | }, |
| 38 | |
| 39 | async submitExam ({ commit }, { userExamId, expires }) { |
| 40 | const response = await submitExam(userExamId, { |
nothing calls this directly
no test coverage detected