mercredi 31 décembre 2014

Unit testing controller which has a $state.go method in controller

How can I write unit tests for a function that has a $state.go () and which is expected to redirect to that particular sate?



$scope.inviteMembers = (id)=> {
$state.go('invite', {deptId: id});
}

Aucun commentaire:

Enregistrer un commentaire