MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / submitExam

Function submitExam

api/src/routes/protected/challenge.test.ts:2241–2250  ·  view source on GitHub ↗
(exam: ExamSubmission)

Source from the content-addressed store, hash-verified

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();

Callers 1

challenge.test.tsFile · 0.70

Calls 2

superRequestFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected