☕️ Classic, reliable, trusted test framework for Node.js and the browser
renamed --leaks to --ignore-leaks
Tj Holowaychukd44487ea186a
diff --git a/bin/mocha b/bin/mochaindex bd453adc..b43f1583 100755--- a/bin/mocha+++ b/bin/mocha@@ -47,7 +47,7 @@ program.option('-c, --colors', 'force enabling of colors').option('-G, --growl', 'enable growl notification support').option('--globals <names>', 'allow the given comma-delimited global [names]', list, [])- .option('--leaks', 'ignore var global leaks')+ .option('--ignore-leaks', 'ignore global variable leaks').option('--interfaces', 'display available interfaces').option('--reporters', 'display available reporters')diff --git a/test/globals.js b/test/globals.jsindex 6ba173cc..d72de386 100644--- a/test/globals.js+++ b/test/globals.js@@ -21,6 +21,8 @@ describe('global leaks', function(){it('should pass when accepted', function(){okGlobalA = 1;okGlobalB = 1;+ foo = 'test';+ bar = 'test';})afterEach(function(){diff --git a/test/mocha.opts b/test/mocha.optsindex d900fff0..e0c094ec 100644--- a/test/mocha.opts+++ b/test/mocha.opts@@ -2,4 +2,5 @@--reporter dot--ui bdd--growl---globals okGlobalA,okGlobalB\ No newline at end of file+--globals okGlobalA,okGlobalB+--leaks