Skip to content

Instantly share code, notes, and snippets.

@pofallon
Created December 14, 2011 18:05
Show Gist options
  • Save pofallon/1477732 to your computer and use it in GitHub Desktop.
Save pofallon/1477732 to your computer and use it in GitHub Desktop.
Example of failing test not invoking 'after'
var should = require('should');
describe('Simple Test', function() {
after(function(done) {
console.log('In After');
done();
});
describe('specific test', function() {
it('should pass', function(done) {
setTimeout(function() {
should.not.exist(true);
done();
},100);
});
it('should also pass', function(done) {
should.exist(true);
done();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment