☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fix usage of `done()` on error (#46)
Philip M. White307c27126e31
diff --git a/index.md b/index.mdindex 1f4fe112..b83e0937 100644--- a/index.md+++ b/index.md@@ -145,8 +145,8 @@ describe('User', function() {it('should save without error', function(done) {var user = new User('Luna');user.save(function(err) {- if (err) throw err;- done();+ if (err) done(err);+ else done();});});});