yevhenpavliuk / ng-mock-e2e

Fake HTTP back end in Protractor end-to-end tests similarly to how it's done in AngularJS unit tests.
MIT License
15 stars 1 forks source link

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

Open chrislondon opened 8 years ago

chrislondon commented 8 years ago

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 commented 8 years ago

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.