Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

clarify how to test routes properly #13280

Open
@avdd

Description

@avdd

Could we get a description about how to properly test routes?

I'm getting hit by the issue in #2717 (default routes and unexpected GET requests) but the discussion there is mostly unhelpful.

If it's intended that $route fetch the default route every time it's injected (which seems bizarre), how do I write clean tests? Is the Right Way to pollute the tests with $templateCache or $httpBackend.expect noise? or is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions