Error: Unexpected request: POST http://cms.focusweb.ir/Json/get_article
No more request expected
at $httpBackend (angular-mocks.js:1207)
at sendReq (ionic.bundle.js:19160)
at status.$get.serverRequest (ionic.bundle.js:18872)
at processQueue (ionic.bundle.js:23394)
at ionic.bundle.js:23410
at Scope.parent.$get.Scope.$eval (ionic.bundle.js:24673)
at Scope.parent.$get.Scope.$digest (ionic.bundle.js:24484)
at Scope.parent.$get.Scope.$apply (ionic.bundle.js:24778)
at done (ionic.bundle.js:19191)
at completeRequest (ionic.bundle.js:19363)
Finally I found the problem.
The problem is with ngMockE2E AngularJS module that should be used only for tests and not included like dependency for you project.
I’m using ngMockE2E for ‘backendless’ development, so excluding the module (and thus mocked service) is not an option for me. I don’t know if just removing the dependency is a proper solution because backendless development is a common approach.
edit:
Adding proxy settings to your ionic.config.json (previously ‘ionic.project’) seems to fix it. You can then use your ngMockE2E modules as expected.