How to mock an AJAX request?

后端 未结 3 1776
-上瘾入骨i
-上瘾入骨i 2020-12-16 05:57

What is the simplest way to modify scenarios.js to mock an AJAX request during an end-to-end test?




        
3条回答
  •  囚心锁ツ
    2020-12-16 06:09

    You should use $httpBackend from ngMockE2E module to mock http requests. Take a look at the docs.

提交回复
热议问题