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