☕️ Classic, reliable, trusted test framework for Node.js and the browser
update browser example
Tj Holowaychuk073328fc5cec
diff --git a/index.md b/index.mdindex 009b8bc3..aa1a6bd2 100644--- a/index.md+++ b/index.md@@ -371,7 +371,13 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal<script src="test.array.js"></script><script src="test.object.js"></script><script src="test.xhr.js"></script>- <script>onload = mocha.run;</script>+ <script>+ onload = function(){+ mocha+ .run()+ .globals(['foo', 'bar']) // acceptable globals+ };+ </script>### grep