Below is code of mycontroller class in angular:
Controller:
ConnectionService.doSPPALogin(SessionService.getUUID(), $scope.username,$scope.password);
$scope.showProgressBar();
Service:
lcmaApp.service('ConnectionService', function(Connection){
this.doSPPALogin = function(uuid, username, password)
{
Connection.doSPPALogin(uuid, username, password);
};
How to write a jasmine test cases to call the particular service method with "connection" parameter?
Please explain with dependency.
Aucun commentaire:
Enregistrer un commentaire