Skip to content

Commit

Permalink
[test] Test if exception thrown in the topic gets passed down
Browse files Browse the repository at this point in the history
Tests 7fc5133b3037163ac8272c491fe800500dcf4a1e.
  • Loading branch information
heynemann authored and mmalecki committed Dec 23, 2011
1 parent 6f84e3b commit 239df60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/vows-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ vows.describe("Vows").addBatch({
},
}
},
"A topic with a function that errors": {
topic: function() {
throw("Something wrong here");
},
"should error out": function(topic) {
assert.equal(topic, "Something wrong here");
}
},
"A topic emitting an error": {
topic: function () {
var promise = new(events.EventEmitter);
Expand Down

0 comments on commit 239df60

Please sign in to comment.