Skip to content

armgit / mocha

Public Imported from GitHub
0

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

tweak large example

TJ Holowaychukc82c5f40cfd7
diff --git a/test/browser/large.js b/test/browser/large.js
index 4f90e8ce..a99d4173 100644
--- a/test/browser/large.js
+++ b/test/browser/large.js
@@ -16,7 +16,7 @@ while (n--) {
it('should return the correct index when the value is present', function(done){
assert(0 == arr.indexOf(1));
assert(1 == arr.indexOf(2));
- setTimeout(done, Math.random() * 200 | 0)
+ setTimeout(function(){ done() }, Math.random() * 200 | 0)
})
})
})