Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

more tests

Tj Holowaychuk14fc500b67b1
diff --git a/test/uncaught.js b/test/uncaught.js
index e1964da7..7349595d 100644
--- a/test/uncaught.js
+++ b/test/uncaught.js
@@ -1,5 +1,12 @@
describe('uncaught', function(){
+ beforeEach(function(done){
+ process.nextTick(function(){
+ // throw new Error('oh noes');
+ done();
+ });
+ })
+
it('should report properly', function(done){
process.nextTick(function(){
// if you uncomment this :)