Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Tiny fix to promises docs.

Domenic Denicola51dd869554fa
diff --git a/index.html b/index.html
index a86bdba5..a97f1ab9 100644
--- a/index.html
+++ b/index.html
@@ -205,7 +205,7 @@ $ mocha
})
describe('#find()', function(){
- it('respond with matching records', function(done){
+ it('respond with matching records', function(){
return db.find({ type: 'User' }).should.eventually.have.length(3);
})
})
diff --git a/index.md b/index.md
index 8d4f3d09..84439de2 100644
--- a/index.md
+++ b/index.md
@@ -171,7 +171,7 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
})
describe('#find()', function(){
- it('respond with matching records', function(done){
+ it('respond with matching records', function(){
return db.find({ type: 'User' }).should.eventually.have.length(3);
})
})