jeudi 2 avril 2015

Unitt esting a service in angular

I'm relatively new to unit testing but was now tasked to write tests for a existing code base that I know quite well.


Sadly I'm unable to achieve any progress what so ever nor find really helpful documentation.


The main component of the code base is a service to retrieve data from an api but I'm unable to get an instance of the module the service belongs to:



TypeError: module is not a function in /home/faebser/workspace/GridSense-CMS-App/dev/test/unit/api.test.js (line 13)


karma config: http://ift.tt/1F6tKg1


tests: http://ift.tt/1xEcJfF


karma output: http://ift.tt/1F6tMog


What is the problem? why am I not able to get a instance of the module?


Aucun commentaire:

Enregistrer un commentaire