Simplify the |indent| function in /test/run
This commit is contained in:
parent
9d5990f80a
commit
d35b21e9b2
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 ok(s) { return "\u001B[32m" + s + "\u001B[39m"; };
|
||||||
function error(s) { return "\u001B[31m" + s + "\u001B[39m"; };
|
function error(s) { return "\u001B[31m" + s + "\u001B[39m"; };
|
||||||
|
|
||||||
function indent(s) {
|
function indent(s) { return s.replace(/^/gm, " "); }
|
||||||
return s.split("\n").map(function(line) { return " " + line; }).join("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
QUnit.init();
|
QUnit.init();
|
||||||
QUnit.config.blocking = true;
|
QUnit.config.blocking = true;
|
||||||
|
|
Loading…
Reference in a new issue