Skip to content

Commit 0d3f273

Browse files
authored
Merge bdb2c4d into 2741d98
2 parents 2741d98 + bdb2c4d commit 0d3f273

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/reporters/base_color.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
require('colors')
1+
const { red, yellow, green, cyan } = require('colors/safe')
22

33
function BaseColorReporter () {
44
this.USE_COLORS = true
55

6-
this.LOG_SINGLE_BROWSER = '%s: ' + '%s'.cyan + '\n'
7-
this.LOG_MULTI_BROWSER = '%s %s: ' + '%s'.cyan + '\n'
6+
this.LOG_SINGLE_BROWSER = '%s: ' + cyan('%s') + '\n'
7+
this.LOG_MULTI_BROWSER = '%s %s: ' + cyan('%s') + '\n'
88

9-
this.SPEC_FAILURE = '%s %s FAILED'.red + '\n'
10-
this.SPEC_SLOW = '%s SLOW %s: %s'.yellow + '\n'
11-
this.ERROR = '%s ERROR'.red + '\n'
9+
this.SPEC_FAILURE = red('%s %s FAILED') + '\n'
10+
this.SPEC_SLOW = yellow('%s SLOW %s: %s') + '\n'
11+
this.ERROR = red('%s ERROR') + '\n'
1212

13-
this.FINISHED_ERROR = ' ERROR'.red
14-
this.FINISHED_SUCCESS = ' SUCCESS'.green
15-
this.FINISHED_DISCONNECTED = ' DISCONNECTED'.red
13+
this.FINISHED_ERROR = red(' ERROR')
14+
this.FINISHED_SUCCESS = green(' SUCCESS')
15+
this.FINISHED_DISCONNECTED = red(' DISCONNECTED')
1616

17-
this.X_FAILED = ' (%d FAILED)'.red
17+
this.X_FAILED = red(' (%d FAILED)')
1818

19-
this.TOTAL_SUCCESS = 'TOTAL: %d SUCCESS'.green + '\n'
20-
this.TOTAL_FAILED = 'TOTAL: %d FAILED, %d SUCCESS'.red + '\n'
19+
this.TOTAL_SUCCESS = green('TOTAL: %d SUCCESS') + '\n'
20+
this.TOTAL_FAILED = red('TOTAL: %d FAILED, %d SUCCESS') + '\n'
2121
}
2222

2323
// PUBLISH

0 commit comments

Comments
 (0)