I discovered that the problem is not inherent to mongoose validation 
method, but to vows. Incredibly vows fails to manage Error in callback. For 
example:


'this model': {
    topic: function() {this.callback(new Error('error!!!'))}
    'should throw an error': function(e) {asser.ok(e);}
}

this very simple test fails with 

 ยป An unexpected error was caught: Error: error! 

I thought vows was a solid test library...what happened?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to