ng-mock-e2e icon indicating copy to clipboard operation
ng-mock-e2e copied to clipboard

Feature Request: Implement angular-mocks.$httpBackend.expect(...)

Open chrislondon opened this issue 8 years ago • 1 comments

I'd like to see the $httpBackend.expect(...) functionality implemented as described in the angular documentation: https://docs.angularjs.org/api/ngMock/service/$httpBackend

I may be able to help some with the development but I'm unfamiliar with working on browser/webDriver stuff.

chrislondon avatar Jun 15 '16 21:06 chrislondon

Looks like the expect functionality is part of the ngMock and NOT the ngMockE2E (though the expect functions do show up under ngMockE2E most likely due to oversight).

I did start a new protractor plugin that lets you expect http calls: https://github.com/chrislondon/protractor-http-plugin

I use it nicely with this ng-mock-e2e module.

chrislondon avatar Jun 16 '16 20:06 chrislondon