Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

`options.reporterOptions` are used for progress reporter

Can Oztokmak78b686f3663f
diff --git a/lib/reporters/progress.js b/lib/reporters/progress.js
index 378ce382..9d545534 100644
--- a/lib/reporters/progress.js
+++ b/lib/reporters/progress.js
@@ -39,11 +39,13 @@ 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 () {