Commit 0b375864 authored by Jakob Moser's avatar Jakob Moser
Browse files

Auto-press Enter if user forgot to do it

Closes #34
parent 7ca239ab
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/** API to create exercises */

import { getTerminalContents, runCommand } from "./jslinux.api.mjs"
import { getTerminalContents, runCommand, runUnexecutedCommand } from "./jslinux.api.mjs"
import { arrayEquals } from "./util.mjs"
import { getHandInToken } from "./snakeoil.mjs"
import { State } from "./state.mjs"
@@ -211,7 +211,8 @@ class ExerciseExecutionContext {
     */
    manualConfirmation() {
        return new Promise((resolve, _) => {
            this._confirmExerciseCompletion = () => {
            this._confirmExerciseCompletion = async () => {
                await runUnexecutedCommand()
                this._verifyingHandler()
                resolve()
            }