-
Notifications
You must be signed in to change notification settings - Fork 3k
Can there be a more helpful error for non-existing routes #742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Haha, we can mark it as a bug and see what happens. |
I may have jumped to the wrong conclusion. A co-worker wrote some new tests and the error |
At this point you'd need to put together a plunkr and try to isolate the bug. Then we can take a look at it. |
Looks like it's a known issue? I have implemented the state mock method mentioned in that issue. It appears to works for now, it bypasses kicking in the actual routing, which would be more of an integration test instead of the desired unit test that I want. |
Is this a dupe then? |
yes |
I don't know if this is the right venue, but here is my user story:
As a developer, when I use an incorrect route in my
$urlRouterProvider.otherwise
config, I would prefer to see an error like 'no matching route for $urlRouterProvider.otherwise' instead of 'Some of your tests did a full page reload!', so that I know where the error is coming from, so that I do not pull my hair out.http://stackoverflow.com/questions/20960332/ui-router-causing-full-page-reload-in-controller-test
The text was updated successfully, but these errors were encountered: