title: What's the best way to unit test an event being emitted in Nodejs?
body: <p>I'm writing a bunch of mocha tests and I'd like to test that particular events are emitted. Currently, I'm doing this:</p>
  
  <pre><code>  it('should emit an some_event', function(done){
      myObj.on('some_event',function(){
        assert(true);
        done();
      });
    });
  </code></pre>
  
  <p>However, if the event never emits, it crashes the test suite rather than failing that one test.</p>
  
  <p>What's the best way to test this?</p>