diff --git a/test/vows-test.js b/test/vows-test.js index d9fa386..d539a54 100644 --- a/test/vows-test.js +++ b/test/vows-test.js @@ -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);