title: where to delete database and close connection after all tests using mocha
body: <p>I'm trying to figure out where to put a function to delete database and close connection after all tests have run.</p>
  
  <p>Here are my nested tests:</p>
  
  <pre><code>//db.connection.db.dropDatabase();
  //db.connection.close();
  
  describe('User', function(){
      beforeEach(function(done){
      });
  
      after(function(done){
      });
  
      describe('#save()', function(){
          beforeEach(function(done){
          });
  
          it('should have username property', function(done){
              user.save(function(err, user){
                  done();
              });
          });
  
          // now try a negative test
          it('should not save if username is not present', function(done){
              user.save(function(err, user){
                  done();
              });
          });
      });
  
      describe('#find()', function(){
          beforeEach(function(done){
              user.save(function(err, user){
                  done();
              });
          });
  
          it('should find user by email', function(done){
              User.findOne({email: fakeUser.email}, function(err, user){
                  done();
              });
          });
  
          it('should find user by username', function(done){
              User.findOne({username: fakeUser.username}, function(err, user){
                  done();
              });
          });
      });
  });
  </code></pre>
  
  <p>Nothing seems to work. I get      Error: timeout of 2000ms exceeded</p>