First of all i will explain my goal. I have an app divided into several modules. In this case I just want to test my ui-module. I have some calls to the back-end there and i want to simulate the response or just change some models' values. I think you can not change the value of a model, so i am trying to simulate the back-end.
Where am I? I have a model 'documents' that when i press a search button, it get data from the back-end. I want to test that without the backend.
I have tried with "httpbackend" but i can not get it going. Also i have tried "protractor-http-mock" and neither
I am starting with cucumber and mocking so forgive me if this question is so general.
Aucun commentaire:
Enregistrer un commentaire