Skip to content

armgit / mocha

Public Imported from GitHub
0

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

source

TJ Holowaychukaaaec348b4ee
diff --git a/index.html b/index.html
index 6de342a8..f21009a7 100644
--- a/index.html
+++ b/index.html
@@ -650,6 +650,8 @@ test('#length', function(){
<script src="test.object.js"></script>
<script src="test.xhr.js"></script>
<script>
+ mocha.checkLeaks();
+ mocha.globals(['jQuery']);
mocha.run();
</script>
</body>
@@ -771,7 +773,7 @@ test('#length', function(){
<h2 id="more-information">More information</h2>
-<p>For additional information such as using spies, mocking, and shared behaviours be sure to check out the <a href="https://github.com/visionmedia/mocha/wiki">Mocha Wiki</a> on GitHub. For discussions join the <a href="http://groups.google.com/group/mochajs">Google Group</a>. For a running example of mocha view <a href="example/tests.html">example/tests.html</a>.</p>
+<p>For additional information such as using spies, mocking, and shared behaviours be sure to check out the <a href="https://github.com/visionmedia/mocha/wiki">Mocha Wiki</a> on GitHub. For discussions join the <a href="http://groups.google.com/group/mochajs">Google Group</a>. For a running example of mocha view <a href="example/tests.html">example/tests.html</a>. For the JavaScript API view the <a href="https://github.com/visionmedia/mocha/blob/master/lib/mocha.js#L51">source</a>.</p>
</section>
<footer>
<span>© 2011 TJ Holowaychuk. All rights reserved.</span>
diff --git a/index.md b/index.md
index 7e33a266..412b90ed 100644
--- a/index.md
+++ b/index.md
@@ -721,4 +721,4 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
<h2 id="more-information">More information</h2>
- For additional information such as using spies, mocking, and shared behaviours be sure to check out the [Mocha Wiki](https://github.com/visionmedia/mocha/wiki) on GitHub. For discussions join the [Google Group](http://groups.google.com/group/mochajs). For a running example of mocha view [example/tests.html](example/tests.html).
+ For additional information such as using spies, mocking, and shared behaviours be sure to check out the [Mocha Wiki](https://github.com/visionmedia/mocha/wiki) on GitHub. For discussions join the [Google Group](http://groups.google.com/group/mochajs). For a running example of mocha view [example/tests.html](example/tests.html). For the JavaScript API view the [source](https://github.com/visionmedia/mocha/blob/master/lib/mocha.js#L51).