Skip to content

Instantly share code, notes, and snippets.

@jugglinmike
Created February 7, 2015 23:10
Show Gist options
  • Save jugglinmike/8c02fdf46cc2402d47cc to your computer and use it in GitHub Desktop.
Save jugglinmike/8c02fdf46cc2402d47cc to your computer and use it in GitHub Desktop.
Mocha error
'use strict';
describe('describe1', function() {
describe('describe2', function() {
it('test', function(done) {
setTimeout(function() {
throw new Error('global error');
}, 0);
setTimeout(function() {
done(new Error('test error'));
}, 0);
});
});
});
after(function() {
throw new Error();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment