Skip to content

armgit / mocha

Public Imported from GitHub
0

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

remove dead code in bin/_mocha

Christopher Hiller1606f35a956c
diff --git a/bin/_mocha b/bin/_mocha
index fe1cdcc8..c96f1c2d 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -367,19 +367,6 @@ if (program.reporterOptions !== undefined) {
mocha.reporter(program.reporter, reporterOptions);
-// load reporter
-
-let Reporter = null;
-try {
- Reporter = require(`../lib/reporters/${program.reporter}`);
-} catch (err) {
- try {
- Reporter = require(program.reporter);
- } catch (err2) {
- throw new Error(`reporter "${program.reporter}" does not exist`);
- }
-}
-
// --no-colors
if (!program.colors) {