File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,16 @@ MiniReporter.prototype.prefix = function (str) {
7070} ;
7171
7272MiniReporter . prototype . _test = function ( test ) {
73- var title ;
73+ var title = test . title ;
7474
7575 if ( test . todo ) {
76- title = colors . todo ( '- ' + test . title ) ;
7776 this . todoCount ++ ;
7877 } else if ( test . skip ) {
79- title = colors . skip ( '- ' + test . title ) ;
8078 this . skipCount ++ ;
8179 } else if ( test . error ) {
8280 title = colors . error ( test . title ) ;
8381 this . failCount ++ ;
8482 } else {
85- title = colors . pass ( test . title ) ;
8683 this . passCount ++ ;
8784 }
8885
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ test('skipped test', function (t) {
120120
121121 var expectedOutput = [
122122 ' ' ,
123- ' ⠋ ' + chalk . yellow ( '- skipped' ) ,
123+ ' ⠋ ' + chalk . yellow ( 'skipped' ) ,
124124 '' ,
125125 ' ' + chalk . yellow ( '1 skipped' )
126126 ] . join ( '\n' ) ;
@@ -140,7 +140,7 @@ test('todo test', function (t) {
140140
141141 var expectedOutput = [
142142 ' ' ,
143- ' ⠋ ' + chalk . blue ( '- todo' ) ,
143+ ' ⠋ ' + chalk . blue ( 'todo' ) ,
144144 '' ,
145145 ' ' + chalk . blue ( '1 todo' )
146146 ] . join ( '\n' ) ;
You can’t perform that action at this time.
0 commit comments