mardi 3 mars 2015

Angular Unit test case for $resource

i am new to angular unit test cases, i am writing test cases to check $resource: get, post, query functions. I have following code: angular.module ('productApp').factory('Product', ["$resource", function ($resource){ this.api = $resource('api/v1/products/:id/:field', null, {update:{method: 'PUT'}}); }]); Please give me an example.


Aucun commentaire:

Enregistrer un commentaire