jeudi 8 septembre 2016

How do by pass an inherited controller in AngularJS for testing with Karma?


I have a parent controller that I inherit and it makes many calls and uses services, how do I init my child controller in a unit test bypassing the parent to prevent those calls?
I tried this solution here: Unit test AngularJS controller that inherits from a base controller via $controller
Unfortunately it's not working.

Aucun commentaire:

Enregistrer un commentaire