* Fancy messages

* show summury message
This commit is contained in:
2016-04-02 01:24:36 +05:30
parent ed9a23400c
commit 0eec146cef
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ var pr = console.log;
var INDENT = ' '; var INDENT = ' ';
var STATUS_FLAG = { var STATUS_FLAG = {
true : 'Okey', true : '\u001b[32m\u001b[1m' + '✔' + '\u001b[22m\u001b[39m',
false : 'Fail' false : '\u001b[31m\u001b[1m' + '✗' + '\u001b[22m\u001b[39m',
}; };
function print( level, item ){ function print( level, item ){
+4 -1
View File
@@ -9,7 +9,10 @@ var sm = new SimpleMocha();
sm.onLoad = function(){ sm.onLoad = function(){
sm.rootDescribeBlock.run( function( err ){ sm.rootDescribeBlock.run( function( err ){
console.log( err ? 'Finished with error' : 'Finished Successfully', err ); console.log( err ? 'Finished with error' : 'Finished Successfully' );
if( err ){
console.log( err.stack || err );
}
}); });
} }