Simplify the |indent| function in /test/run

redux
David Majda 13 years ago
parent 9d5990f80a
commit d35b21e9b2

@ -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