I have a very simple function in a jasmine test where I am simply returning $q.reject
var mockFunction = function() {
return $q.reject("error");
};
which I call:
mockFunction().catch(function(){
// ... blah
});
the catch callback function is never being invoked. If I understand correctly $q.resolve should create a promise, rejected immediately and return the rejected promise so I'm not sure why this is not working
Any insights are appreciated. Thanks!