Run AngularJS resource tests without mocking responses

徘徊边缘 提交于 2019-12-13 01:13:39

问题


I'm using karma, mocha and chai to write tests for the resources in my AngularJS project and everything works great. Today, I'm using $httpBackend to mock every response when the resources are doing http requests. I wonder, however, if I would be able to run the tests without mocking the responses and testing out the real backend integration. Can't seem to find any way to do this.

来源:https://stackoverflow.com/questions/30346214/run-angularjs-resource-tests-without-mocking-responses

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!