Skip to content

Commit

Permalink
Write test status to dom rather than console
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh authored and JacopKane committed Jan 11, 2018
1 parent aa7fb70 commit 36f977c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/babylon/test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
window.onload = function(){
var t0 = +new Date;
runTests(report);
console.log(testsRun + " tests run in " + (+new Date - t0) + "ms");
if (failed) console.log(failed + " failures.");
else console.log("All passed.");
var out = testsRun + " tests run in " + (+new Date - t0) + "ms\n";
if (failed) out += failed + " failures.\n";
else out += "All passed.\n";
document.body.appendChild(document.createElement("pre")).appendChild(document.createTextNode(out));
};
</script>

0 comments on commit 36f977c

Please sign in to comment.