File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,18 @@ export default class FancyReporter extends BasicReporter {
64
64
65
65
const tag = logObj . tag ? secondaryColor ( logObj . tag ) : ''
66
66
67
+ let line
67
68
let left = this . filterAndJoin ( [ type , message ] )
68
69
let right = this . filterAndJoin ( [ tag , date ] )
69
70
70
- const space = width - stringWidth ( left ) - stringWidth ( right ) - 2
71
-
72
- let line = space > 0 ? ( left + ' ' . repeat ( space ) + right ) : left
71
+ if ( width > 80 ) {
72
+ const space = width - stringWidth ( left ) - stringWidth ( right ) - 2
73
+ line = space > 0 ? ( left + ' ' . repeat ( space ) + right ) : left
74
+ } else {
75
+ line = right + ' ' + left
76
+ }
73
77
74
- line += additional . length
75
- ? '\n' + additional . join ( '\n' )
76
- : ''
78
+ line += additional . length ? '\n' + additional . join ( '\n' ) : ''
77
79
78
80
return isBadge ? '\n' + line + '\n' : line
79
81
}
You can’t perform that action at this time.
0 commit comments