How to verify $httpBackend mock expectations in a Protractor test?
问题 I'm developing a frontend for a REST API. I'm using Protractor for end-to-end tests with the API mocked out because I want to be able to test the frontend in isolation. Here's a simple test I got: describe('partner', function () { it('should list partners', function () { var page = new PartnerListPage(); var httpBackendMock = function () { angular.module('httpBackendMock', ['ngMockE2E']) .run(function ($httpBackend) { $httpBackend.whenGET('/api/partners').respond(200, { _embedded: { partners: