Hi, 


Any idea of how to test the folowwing code  using jasmine , or code the is 
similar to that one?

I want to test it using without mocks . I mean using real promises.  

var myservice = function (){

    var deferred = this.$q.defer();
    require("module", function (m){
   var x = ....
   deferred.resolve(x);
});
    return deferred.promise;
} 



Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to