Skip to content

Commit d8ffcfb

Browse files
committed
Fix: reporters with chalk functions (fixes #2073)
1 parent a661e6c commit d8ffcfb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/reporters/landing.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var Base = require('./base');
66
var inherits = require('../utils').inherits;
77
var cursor = Base.cursor;
88
var color = Base.color;
9+
var chalk = require('chalk');
910

1011
/**
1112
* Expose `Landing`.
@@ -17,19 +18,19 @@ exports = module.exports = Landing;
1718
* Airplane color.
1819
*/
1920

20-
Base.colors.plane = 0;
21+
Base.colors.plane = chalk.white;
2122

2223
/**
2324
* Airplane crash color.
2425
*/
2526

26-
Base.colors['plane crash'] = 31;
27+
Base.colors['plane crash'] = chalk.red;
2728

2829
/**
2930
* Runway color.
3031
*/
3132

32-
Base.colors.runway = 90;
33+
Base.colors.runway = chalk.gray;
3334

3435
/**
3536
* Initialize a new `Landing` reporter.

lib/reporters/progress.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var Base = require('./base');
66
var inherits = require('../utils').inherits;
77
var color = Base.color;
88
var cursor = Base.cursor;
9+
var chalk = require('chalk');
910

1011
/**
1112
* Expose `Progress`.
@@ -17,7 +18,7 @@ exports = module.exports = Progress;
1718
* General progress bar color.
1819
*/
1920

20-
Base.colors.progress = 90;
21+
Base.colors.progress = chalk.gray;
2122

2223
/**
2324
* Initialize a new `Progress` bar test reporter.

0 commit comments

Comments
 (0)