Hey guys,

I'm wondering how I could unittest functions inside my services without 
having them returned by a service. 

.service("Foo", function(){

   function _helperMethod() {
       // stuff
   }

   function importantMethod() {
        _helperMethod();
        return "bar";
   }

   return {
       importantMethod: importantMethod
   }

});

Imagine this little service. How could I test "_helperMethod" without 
returning it?

Any advise is much appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to