Questions et réponses pour le httpbackend :
`$ httpbackend` est une fausse implémentation de backend HTTP adaptée aux applications de test d'unité utilisant le service` $ http` en angular.js.
6
votes
$ httpbackend.flush () la méthode jette une erreur: [$ rootscope: infdig] 10 $ Digest () itérations atteintes. Avortement
J'essaie d'appuyer sur l'application de l'application Angularjs en utilisant Karma et Jasmine. Je veux me moquer du service $ http . Pour cela, j'utilise la méthode $ httpBackend ...
unit-testing
angularjs
karma-jasmine
httpbackend
ngmock
0 commentaire(s)