diff --git a/tests/test.js b/tests/test.js index a50f3d8f..18d1a96f 100644 --- a/tests/test.js +++ b/tests/test.js @@ -10,7 +10,8 @@ test.print = function(print) { print(test.failures[i].toString()) } print("tests: " + test.total + "\nfailures: " + test.failures.length) - if (test.failures.length > 0) { - throw new Error(test.failures.length + " tests did not pass.") - } + + if (test.failures.length > 0) { + throw new Error(test.failures.length + " tests did not pass.") + } }