cloudhead/vows — Issue #187: "An unexpected error was caught" when calling async callback
Author: peterbraden
Created: 2012-01-26 21:20:36+00:00
State: open

this code will trigger:

require('vows').describe('vows').addBatch({
'foo' : {
topic : function(){
this.callback(1)
}
, 'bar' : function(x){
assert.equal(x, 1)
}

}
}).run()

$ node test.js
✗

foo
✗ bar
» An unexpected error was caught: 1
✗ Errored » 1 errored (0.004s)