Permalink
Browse files

failing test for exceptions in t.on("end", fn)

  • Loading branch information...
1 parent 121bc0e commit 399a5ade8b0385db41ed734e2f735f7cbfa81535 @substack substack committed with isaacs Jul 27, 2012
Showing with 13 additions and 1 deletion.
  1. +1 −1 package.json
  2. +12 −0 test/end-exception/t.js
View
@@ -36,6 +36,6 @@
},
"repository": "git://github.com/isaacs/node-tap.git",
"scripts": {
- "test": "bin/tap.js test"
+ "test": "bin/tap.js test/*.js"
}
}
View
@@ -0,0 +1,12 @@
+var test = require("../../").test
+
+test(function (t) {
+ t.plan(1)
+
+ t.on('end', function () {
+ console.log('end()')
+ throw new Error('beep')
+ })
+
+ t.equal(3, 3)
+})

0 comments on commit 399a5ad

Please sign in to comment.