Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 848142a

Browse files
committed
prettier - izing
1 parent 0b42a2e commit 848142a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

runestone/activecode/js/livecode.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class LiveCode extends ActiveCode {
2929
}
3030
this.createErrorOutput();
3131
}
32-
outputfun(a) { }
32+
outputfun(a) {}
3333
createInputElement() {
3434
var label = document.createElement("label");
3535
label.for = this.divid + "_stdin";
@@ -43,7 +43,7 @@ export default class LiveCode extends ActiveCode {
4343
this.outerDiv.appendChild(input);
4444
this.stdin_el = input;
4545
}
46-
createErrorOutput() { }
46+
createErrorOutput() {}
4747

4848
/* Main runProg method for livecode
4949
*
@@ -205,9 +205,9 @@ export default class LiveCode extends ActiveCode {
205205
public static void main(String[] args) {
206206
CodeTestHelper.resetFinalResults();
207207
Result result = JUnitCore.runClasses(${testdrivername.replace(
208-
".java",
209-
".class"
210-
)});
208+
".java",
209+
".class"
210+
)});
211211
System.out.println(CodeTestHelper.getFinalResults());
212212
213213
int total = result.getRunCount();
@@ -315,7 +315,10 @@ export default class LiveCode extends ActiveCode {
315315
$(odiv).html(this.parsedOutput.stdout);
316316
if (this.suffix) {
317317
if (this.parsedOutput.pct === undefined) {
318-
this.parsedOutput.pct = this.parsedOutput.passed = this.parsedOutput.failed = 0;
318+
this.parsedOutput.pct =
319+
this.parsedOutput.passed =
320+
this.parsedOutput.failed =
321+
0;
319322
}
320323
this.unit_results = `percent:${this.parsedOutput.pct}:passed:${this.parsedOutput.passed}:failed:${this.parsedOutput.failed}`;
321324
}

0 commit comments

Comments
 (0)