Skip to content

armgit / mocha

Public Imported from GitHub
0

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

replace --ignore-leaks with --check-leaks

TJ Holowaychukbafd14e224f1
diff --git a/bin/_mocha b/bin/_mocha
index 7a4d8a33..d1187405 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -73,7 +73,7 @@ program
.option('--recursive', 'include sub directories')
.option('--debug-brk', "enable node's debugger breaking on the first line")
.option('--globals <names>', 'allow the given comma-delimited global [names]', list, [])
- .option('--ignore-leaks', 'ignore global variable leaks')
+ .option('--check-leaks', 'check for global variable leaks')
.option('--interfaces', 'display available interfaces')
.option('--reporters', 'display available reporters')
.option('--compilers <ext>:<module>,...', 'use the given module(s) to compile files', list, [])
@@ -224,9 +224,9 @@ if (program.grep) mocha.grep(new RegExp(program.grep));
if (program.invert) mocha.invert();
-// --ignore-leaks
+// --check-leaks
-if (program.ignoreLeaks) mocha.ignoreLeaks();
+if (program.checkLeaks) mocha.checkLeaks();
// --growl