-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
I have Meteor.method that throw errors. This method use before method hooks that throw an error. I'm using promises to test it. But the error throws before the expect can test it.
return server.promise(function (resolve, reject, data) {
Meteor.call('Post.add', {content: 'sample content'}, function(err, result) {
if(err) {
reject(err);
}
});
}).then(function (err) {
expect(err).to.be.an('null');
});