Browse Source

* Fancy messages

* show summury message
refactor
Harish.K 10 years ago
parent
commit
0eec146cef
  1. 4
      index-v1.js
  2. 5
      main-runner.js

4
index-v1.js

@ -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 ){

5
main-runner.js

@ -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 );
}
});
}

Loading…
Cancel
Save