within a controller i have a function which uses $state.transitionTo to \"redirect\" to another state.
$state.transitionTo
now i am stuck in testing this function, i get al
Also if you want to expect on that the transition was made like so
expect(state.current.name).toEqual('state-two')
then you need to scope.$apply before the expect() for it to work
scope.$apply
expect()