Skip to content

Commit

Permalink
options.reporterOptions are used for progress reporter
Browse files Browse the repository at this point in the history
Progress reporter had multiple options for configuring the reporter,
but it needed the optional fields under `options` object, while
those fields are provided under `options.reporterOptions`.
This commit enables usage of optional fields from `reporterOptions`.
  • Loading branch information
Can Oztokmak committed Dec 28, 2016
1 parent f6605cf commit 2119db7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/reporters/progress.js
Expand Up @@ -39,11 +39,12 @@ function Progress (runner, options) {

// default chars
options = options || {};
options.open = options.open || '[';
options.complete = options.complete || '▬';
options.incomplete = options.incomplete || Base.symbols.dot;
options.close = options.close || ']';
options.verbose = false;
var reporterOptions = options.reporterOptions || {};
options.open = reporterOptions.open || '[';
options.complete = reporterOptions.complete || '▬';
options.incomplete = reporterOptions.incomplete || Base.symbols.dot;
options.close = reporterOptions.close || ']';
options.verbose = reporterOptions.verbose || false;

// tests started
runner.on('start', function () {
Expand Down

0 comments on commit 2119db7

Please sign in to comment.