[AngularJS] Unit test the type of $http request with $httpBackend

2014-11-27 Thread Daniel Lidström
Does this help? https://github.com/dlidstrom/MinaGlosor/blob/master/MinaGlosor.Test/Web/spec/wordlistservice.spec.js -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] Unit test the type of $http request with $httpBackend

2014-11-27 Thread Michael Cranston
Let's say I have this service. PhotoService.getPhotos returns an $http promise: angular.module('app').factory('PhotoService', function($http) { return { getPhotos: function() { return $http({ method: 'GET', url: '/photos', params: { showAuthor: true,