diff options
Diffstat (limited to 'src/test/Test.js')
-rw-r--r-- | src/test/Test.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/Test.js b/src/test/Test.js index 22145a6..d76f6e9 100644 --- a/src/test/Test.js +++ b/src/test/Test.js @@ -26,17 +26,16 @@ var Test = (() => { error(e); } this[r ? "passed" : "failed"]++; - log(`${r ? "PASSED" : "FAILED"} ${msg || test}`); + log(`[TEST] ${r ? "PASSED" : "FAILED"} ${msg || test}`); if (typeof callback === "function") try { - callback(r, test, msg); + await callback(r, test, msg); } catch(e) { - error(e); + error(e, "[TEST]"); } }, - report() { let {passed, failed} = this; - log(`FAILED: ${failed}, PASSED: ${passed}, TOTAL ${passed + failed}.`); + log(`[TESTS] FAILED: ${failed}, PASSED: ${passed}, TOTAL ${passed + failed}.`); } }; |