Skip to content

armgit / mocha

Public Imported from GitHub
0

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

faster large example

TJ Holowaychukc373d9c28f48
diff --git a/test/browser/large.js b/test/browser/large.js
index a99d4173..5137daa5 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(function(){ done() }, Math.random() * 200 | 0)
+ done();
})
})
})