Loading static/js/exercises.api.mjs +4 −0 Original line number Diff line number Diff line Loading @@ -291,6 +291,10 @@ export function test(name, exerciseCreationFunction) { exercise(name, execute) { const exerciseObj = new Exercise(name, this.exercises.length, execute) this.exercises.push(exerciseObj) }, disableHandIn() { this.handInEnabled = false } } Loading Loading
static/js/exercises.api.mjs +4 −0 Original line number Diff line number Diff line Loading @@ -291,6 +291,10 @@ export function test(name, exerciseCreationFunction) { exercise(name, execute) { const exerciseObj = new Exercise(name, this.exercises.length, execute) this.exercises.push(exerciseObj) }, disableHandIn() { this.handInEnabled = false } } Loading