Closed floreks closed 4 years ago
@floreks - did you ever find a way to test the $transitions hooks? I am facing the exact same issue, where I now have custom logic within a hook I want to cover in my tests. I read that the hooks get triggered when calling $state.go(), which I tried in my tests, but it made no difference for me
did you ever find a way to test the $transitions hooks?
Unfortunately not. Clark.Hsu posted a workaround that works for tests. I have not found a clear way of testing custom logic in the hook.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
This is a:
My version of UI-Router is: 1.0.5
I have tried to seek for help on StackOverflow already but there was no answer. Maybe one of devs that know what was changed will know why
$scope.$broadcast()
is not triggering transition hooks.My post from SO: