Skip to content

armgit / mocha

Public Imported from GitHub
0

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

docs

TJ Holowaychuk5e376ce3c5c0
diff --git a/index.html b/index.html
index 71afec97..a7a041ae 100644
--- a/index.html
+++ b/index.html
@@ -493,10 +493,10 @@ test('#length', function(){
<script src="test.object.js"></script>
<script src="test.xhr.js"></script>
<script>
- $(function () {
+ $(function(){
mocha
- .run()
.globals(['foo', 'bar']) // acceptable globals
+ .run()
})
</script>
</head>
diff --git a/index.md b/index.md
index d62b943e..dc81de5d 100644
--- a/index.md
+++ b/index.md
@@ -455,10 +455,10 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
<script src="test.object.js"></script>
<script src="test.xhr.js"></script>
<script>
- $(function () {
+ $(function(){
mocha
- .run()
.globals(['foo', 'bar']) // acceptable globals
+ .run()
})
</script>
</head>