I am trying to unit test an Angular.js service, and need to set an expect on a promise returned from a Mock service (using Jasmine). I am using the karma unit testing framew
I had this problem and resolved it by simply putting a
$rootScope.$apply()
at the end of my test
Your FacebookService might be the issue, as suggested by @mpm. Are you sure it doesn't have any http calls happening inside of that Facebook
dependency which wouldn't be occurring during unit testing? Are you certain that resolve
has been called on the deferred yet?