Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Revert "`options.reporterOptions` are used for progress reporter"

Christopher Hiller9150e34086b6
diff --git a/lib/reporters/progress.js b/lib/reporters/progress.js
index 9d545534..378ce382 100644
--- a/lib/reporters/progress.js
+++ b/lib/reporters/progress.js
@@ -39,13 +39,11 @@ function Progress (runner, options) {
// default chars
options = options || {};
- 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;
+ options.open = options.open || '[';
+ options.complete = options.complete || '▬';
+ options.incomplete = options.incomplete || Base.symbols.dot;
+ options.close = options.close || ']';
+ options.verbose = false;
// tests started
runner.on('start', function () {