Skip to content

Commit

Permalink
Update app/assets/javascripts/tutor.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bart Mesuere <[email protected]>
  • Loading branch information
jorg-vr and bmesuere authored Feb 13, 2024
1 parent 4d1b397 commit daa2e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/tutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function initTutor(submissionCode: string): void {
async function loadTutor(exerciseId: string, studentCode: string, statements: string, stdin: string, inlineFiles: Record<string, string>, hrefFiles: Record<string, string>): Promise<void> {
const papyros = await initPapyros(ProgrammingLanguage.Python);

if (papyros.codeRunner.getState() != RunState.Ready && papyros.codeRunner.getState() != RunState.Loading) {
if (papyros.codeRunner.getState() !== RunState.Ready && papyros.codeRunner.getState() !== RunState.Loading) {

Check warning on line 52 in app/assets/javascripts/tutor.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/tutor.ts#L52

Added line #L52 was not covered by tests
// stop the code runner if it is running
await papyros.codeRunner.stop();

Check warning on line 54 in app/assets/javascripts/tutor.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/tutor.ts#L54

Added line #L54 was not covered by tests

Expand Down

0 comments on commit daa2e44

Please sign in to comment.