Questions tagged [httpbackend]

`$httpBackend` is a fake HTTP backend implementation suitable for unit testing applications that use the `$http` service in Angular.js.

$httpBackend is a fake HTTP backend implementation suitable for unit testing applications that use the $http service in Angular.js.

222 questions
0
votes
1 answer

$httpBackend mock not sending a request?

After too many hours, I cannot for the life of me get this example working. I'm following Ben Lesh's excellent guides to mocking $http requests in Angular, but for some reason the service request is not sending. I have verified that the service is…
Ben
  • 54,723
  • 49
  • 178
  • 224
0
votes
0 answers

Issue with $httpbackend while testing Angular Controler with Karma-Jasmine

I put the code in a fiddle so it can be easily updated and 'worked with' if needed. describe('PlayersListCtrl', function() { // Jasmine Test Suite beforeEach(module('wc2014App')); var ctrl, scope, $httpBackend; …
0
votes
2 answers

Angular + Karma + Jasmine - Testing and app with a fake backend

I'm developing an angular WebApp and since the BackEnd is not still ready I'm using a fake backend ($httpBackend) to test my REST request. It is defined in app.js in this way: // we want to use $httpBackend mock app.config(function($provide) { …
teone
  • 2,153
  • 3
  • 25
  • 49
0
votes
1 answer

A good structure for "app" backend to website

Like everyone else and their neighbour too, we're developing an app (ipad/android) for one of our websites that has functionality that people rather access in an app, for reasons passing understanding. Well, my question regards how to think when it…
Adergaard
  • 760
  • 10
  • 24
0
votes
2 answers

How to call a .exe file in server to run on server?

What I want to archive is I have a.exe file saved in server. This a.exe needs one INT input from 0-10, and the output of it is to create a file for user. And then webpage can show it to users. My question is how can I call the a.exe? My website's…
user3252009
  • 1
  • 1
  • 1
0
votes
2 answers

Trouble Using AngularJS $httpBackend to respond to BreezeJS executeQuery

Has anyone been able to build specs or e2e tests using $httpBackend while having BreezeJS function as your entity manager? Here is the BreezeJS code: function getClientsAll() { var query =…
-1
votes
0 answers

How to create a Project to make a Rhino Plugin in VS Code

I need to create a project to make a rhino plugin can you help me to understand it better as I am entirely new to it, I Don't Know the basics of a rhino plugin too I am completely new to the problem just need a bit of guidance to complete the…
-1
votes
1 answer

Terraform Error: Invalid provider configuration

I need some help to figure out what's wrong here. Here is my file : terraform { required_version = ">= 0.13" required_providers { google = { source = "hashicorp/google" version = "~> 3.63" } } backend "http" { #…
-1
votes
1 answer

Why does expectPUT/POST/etc represent request bodies as a string?

Look at the API for $httpbackend, we can see that functions like expectPut can take up to 4 parameters. The second parameter can be a function which takes 1 parameter: a string. This string represents the body of the HTTP request. But why is it a…
-1
votes
1 answer

$httpBackend handling more than 3 calls

I am currently running angularjs 1.2.10 and using karma/jasmine with angular-mocks-1.2.10 for unit testing and stuck in unit test case for $httpBackend. inside it block describe('sumCtrl'...) …
icanbeacoder
  • 1,388
  • 1
  • 13
  • 30
-2
votes
1 answer

Is there is a way to prevent browser DEVTOOLS from accessing source files of a website

As mentioned on the title , i am looking for a way to prevent what i am showcasing in the screenshot , it is bad people accessing things that are not even public yet Screenshot
-2
votes
1 answer

Does MVC pattern implement common tasks of web framework?

The common tasks of web application framework(ex: Django or Laravel or .NET or beego): request / response abstraction session state user authentication & authorisation page templating URL mapping DB access security caching MVC design…
overexchange
  • 15,768
  • 30
  • 152
  • 347
1 2 3
14
15