Skip to content

armgit / mocha

Public Imported from GitHub
0

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

misc

TJ Holowaychuk2d1334927c56
diff --git a/index.html b/index.html
index de7815dc..628024d9 100644
--- a/index.html
+++ b/index.html
@@ -670,7 +670,7 @@ test('#length', function(){
<script>
$(function(){
mocha
- .globals(['foo', 'bar']) // acceptable globals
+ .ignoreLeaks()
.run()
})
</script>
@@ -681,6 +681,8 @@ test('#length', function(){
</html>
</code></pre>
+<p> <strong>NOTE</strong>: it&rsquo;s sometimes a good idea to <code>.ignoreLeaks()</code> in the browser, as this may have a significant impact on performance.</p>
+
<h3 id="grep-query">grep</h3>