Skip to content

Commit

Permalink
Fix: reporters with chalk functions (fixes #2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyandeeps committed Jan 26, 2016
1 parent a661e6c commit d8ffcfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/reporters/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var Base = require('./base');
var inherits = require('../utils').inherits;
var cursor = Base.cursor;
var color = Base.color;
var chalk = require('chalk');

/**
* Expose `Landing`.
Expand All @@ -17,19 +18,19 @@ exports = module.exports = Landing;
* Airplane color.
*/

Base.colors.plane = 0;
Base.colors.plane = chalk.white;

/**
* Airplane crash color.
*/

Base.colors['plane crash'] = 31;
Base.colors['plane crash'] = chalk.red;

/**
* Runway color.
*/

Base.colors.runway = 90;
Base.colors.runway = chalk.gray;

/**
* Initialize a new `Landing` reporter.
Expand Down
3 changes: 2 additions & 1 deletion lib/reporters/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var Base = require('./base');
var inherits = require('../utils').inherits;
var color = Base.color;
var cursor = Base.cursor;
var chalk = require('chalk');

/**
* Expose `Progress`.
Expand All @@ -17,7 +18,7 @@ exports = module.exports = Progress;
* General progress bar color.
*/

Base.colors.progress = 90;
Base.colors.progress = chalk.gray;

/**
* Initialize a new `Progress` bar test reporter.
Expand Down

0 comments on commit d8ffcfb

Please sign in to comment.