vendredi 29 mai 2015

Setting $location.protocol() in angular unit testing

I have a service that checks $location.protocol() and does different things if it's http vs https. How can I set $location.protocol() in unit tests to test my service?

Aucun commentaire:

Enregistrer un commentaire