☕️ Classic, reliable, trusted test framework for Node.js and the browser
rename Mocha#checkGlobals() to Mocha#checkLeaks()
TJ Holowaychuk6aa8fc983119
diff --git a/lib/mocha.js b/lib/mocha.jsindex 217fe92e..1e28d09e 100644--- a/lib/mocha.js+++ b/lib/mocha.js@@ -210,7 +210,7 @@ Mocha.prototype.ignoreLeaks = function(){* @api public*/-Mocha.prototype.checkGlobals = function(){+Mocha.prototype.checkLeaks = function(){this.options.ignoreLeaks = false;return this;};diff --git a/mocha.js b/mocha.jsindex 5cf67cca..f9c149e9 100644--- a/mocha.js+++ b/mocha.js@@ -1148,6 +1148,18 @@ Mocha.prototype.ignoreLeaks = function(){return this;};+/**+ * Enable global leak checking.+ *+ * @return {Mocha}+ * @api public+ */++Mocha.prototype.checkLeaks = function(){+ this.options.ignoreLeaks = false;+ return this;+};+/*** Enable growl support.*diff --git a/test/browser/large.html b/test/browser/large.htmlindex 4bc8de6d..96ec23ad 100644--- a/test/browser/large.html+++ b/test/browser/large.html@@ -13,7 +13,7 @@<script src="large.js"></script><script>onload = function(){- var runner = mocha.run();+ mocha.ignoreLeaks().run();};</script></head>