mirror of
https://github.com/harish2704/simple-mocha.git
synced 2026-09-10 06:21:08 +00:00
* Fancy messages
* show summury message
This commit is contained in:
+2
-2
@@ -9,8 +9,8 @@ var pr = console.log;
|
||||
|
||||
var INDENT = ' ';
|
||||
var STATUS_FLAG = {
|
||||
true : 'Okey',
|
||||
false : 'Fail'
|
||||
true : '\u001b[32m\u001b[1m' + '✔' + '\u001b[22m\u001b[39m',
|
||||
false : '\u001b[31m\u001b[1m' + '✗' + '\u001b[22m\u001b[39m',
|
||||
};
|
||||
|
||||
function print( level, item ){
|
||||
|
||||
+4
-1
@@ -9,7 +9,10 @@ var sm = new SimpleMocha();
|
||||
|
||||
sm.onLoad = function(){
|
||||
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 );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user