I am developing a hybrid app using Ionic framework and my app is using some cordova plugin such as facebook plugin (http://ift.tt/1KdXdM6).
I have developed my own service to make it work with the plugin for easier use in the app. The problem is the plugin only work when it is in mobile app. So, how I can unit test it, as unit test such as Karma, jasmine only run on browser? Talking about mocking, it make sense when other part of the app mock this service. But how to unit test on the service itself?
Aucun commentaire:
Enregistrer un commentaire