问题
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