title: mocha pass variable to the next test
body: <pre><code>describe('some test', function(){
      // Could put here a shared variable
      it('should pass a value', function(done){
          done(null, 1);
      });
      it('and then double it', function(value, done){
          console.log(value * 2);
          done();
      });
  });
  </code></pre>
  
  <p>The above currently would not work in mocha.</p>
  
  <p>A solution would be to have a variable shared between the tests, as shown above.</p>
  
  <p>With <code>async.waterfall()</code> this is very possible and I really like it. Is there any way to make it happen in mocha?</p>
  
  <p>Thanks!</p>