Browse Source

Simplify the |indent| function in /test/run

redux
David Majda 10 years ago
parent
commit
d35b21e9b2
  1. 4
      test/run

4
test/run

@ -12,9 +12,7 @@ function message(s) { return "\u001B[35m" + s + "\u001B[39m"; };
function ok(s) { return "\u001B[32m" + s + "\u001B[39m"; };
function error(s) { return "\u001B[31m" + s + "\u001B[39m"; };
function indent(s) {
return s.split("\n").map(function(line) { return " " + line; }).join("\n");
}
function indent(s) { return s.replace(/^/gm, " "); }
QUnit.init();
QUnit.config.blocking = true;

Loading…
Cancel
Save