I am new to writing unit tests, so apologies if this is a dumb question. If I'm trying to test a method in an Angular controller that relies on mock data from a service call, and I want to also mock ...

How to create fake Socket IO event implementation suitable for ngMockE2E? Something similar to $httpBackend.whenGET / $httpBackend.whenPOSTe.g:
When the Socket IO on the client side emits / broadcast ...

What are the necessary steps to create a backend and what all programming languages must I be through with in order to create my own backend for a app?. What are its advantages and disadvantages? How ...

I am using HttpBackend to mock some Http responses for some calls that my Angular app is making.
However, I am getting the error "Unexpected Request: [object Object] undefined" when I run my tests.
...

I am a beginner in AngularJS. I want to load the dummy data available in mock.js (Todos) and show it on the view. I haven't worked before with httpbackend and ngresource. Please help me and guide me ...

I have an AngularJS service and service name is User. I use it for authentication. Inside this service, I have an authenticate() function which uses Restangular to make a REST call to our API. It's ...

I'm new to unit testing with Angular and I'm having a great deal of trouble even getting starting with the testing. I have a controller that calls a service that calls a remote api to get a list of ...

I'm trying to unit test my login function and I'm able to get the function to run but it does not process the $http request. I know this because it logs 'run function' in the console but it does not ...

I have an AngularJS service which performs an $http GET request and caches the response locally. It is designed to handle the multiple calls happening simultaneously, such that only the data from the ...

I'm writing e2e test for my angular page with protractor.
I use $httpBackend for mocking requests which are sent by $http
But in one old page i found jquery ajaxFrom plugin which sends call by jquery ...

I am trying to write a jasmine test on some javascript using spyon over a method that uses $http. I have mocked this out using $httpBackend and unfortunately the spy doesn't seem to be picking up the ...

I have a controller that needs to run several asynchronous methods that interact with the data on the client and make no calls to the server. I have one method working fine in the browser, but I want ...

My background is not in web development so my terminology might be off, apologies.
In short, I have trouble figuring out where $httpBackend is serving data. This question is as much about finding a ...