Skip to content

armgit / mocha

Public Imported from GitHub
0

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

docs

TJ Holowaychuk251527367fda
diff --git a/index.md b/index.md
index e1ab7d9c..33fa5ca1 100644
--- a/index.md
+++ b/index.md
@@ -581,7 +581,7 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
<script>
$(function(){
mocha
- .globals(['foo', 'bar']) // acceptable globals
+ .ignoreLeaks()
.run()
})
</script>
@@ -591,6 +591,8 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
</body>
</html>
+ __NOTE__: it's sometimes a good idea to `.ignoreLeaks()` in the browser, as this may have a significant impact on performance.
+
<h3 id="grep-query">grep</h3>
The client-side may utilize `--grep` as well, however you use the query-string, for example `?grep=api`.