Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 399a5ade8b0385db41ed734e2f735f7cbfa81535 1 parent 121bc0e
@substack substack authored committed
Showing with 13 additions and 1 deletion.
  1. +1 −1  package.json
  2. +12 −0 test/end-exception/t.js
View
2  package.json
@@ -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
12 test/end-exception/t.js
@@ -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)
+})
Please sign in to comment.
Something went wrong with that request. Please try again.