You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$state.is() when provided with the correct state and the params parameter it will wrongly return true as long as the last param matches even if the others are different.
This test should work but it fails:
it('should return false when the current state is passed with non matching parameters', inject(function ($state, $q) {
$state.transitionTo(D, {x: 'foo', y: 'qux'});
$q.flush();
expect($state.is(D, {x: 'bar', y: 'qux'})).toBe(false);
}));