Created
December 14, 2011 18:05
-
-
Save pofallon/1477732 to your computer and use it in GitHub Desktop.
Example of failing test not invoking 'after'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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