UI-router interfers with $httpbackend unit test, angular js

后端 未结 5 632
悲&欢浪女
悲&欢浪女 2020-11-29 01:59

This is a controller with a submit function:

$scope.submit = function(){   

 $http.post(\'/api/project\', $scope.project)
      .success(function(data, stat         


        
5条回答
  •  星月不相逢
    2020-11-29 02:21

    I have the same error your commented, after a call service they ask me about the url of otherwise ui-route.

    To solve the problem of call the otherwise ui-route in testing is not inject $state in beforeach statment. In my testing $state not have sense to use it.

提交回复
热议问题