I\'m writing a bunch of mocha tests and I\'d like to test that particular events are emitted. Currently, I\'m doing this:
it(\'should emit an some_event\', fun
Just stick:
this.timeout();
at the top of your it statement:
it('should emit an some_event', function(done){ this.timeout(1000); myObj.on('some_event',function(){ assert(true); done(); });`enter code here` });