i need to write jasmine test case for below controller
$scope.cancel = function(){
$scope.cancelTxt = confirm("do you wish to continue?");
$scope.returnLocation = link.getReturnLocation();
if($scope.cancelTxt === true){
$location.path($scope.returnLocation).replace();
}
}
code
Aucun commentaire:
Enregistrer un commentaire