Skip to content

armgit / mocha

Public Imported from GitHub
0

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

async case in test

Tj Holowaychuk5f49aa726e8b
diff --git a/test/unit/hook.async.js b/test/unit/hook.async.js
index 1b473e30..faa9ef4a 100644
--- a/test/unit/hook.async.js
+++ b/test/unit/hook.async.js
@@ -24,8 +24,9 @@ describe('async', function(){
}, 20);
});
- it('one', function(){
+ it('one', function(done){
calls.should.eql(['before one']);
+ setTimeout(done, 10);
});
it('two', function(){