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.

Default route gets resolved in test code when calling $httpBackend.flush() or scope.$apply() #14337

Closed
@achydenius

Description

@achydenius

Do you want to request a feature or report a bug?

Report a breaking change (or a bug).

What is the current behavior?

When upgrading from 1.5.0 to 1.5.1 or newer, calling $httpBackend.flush() or scope.$apply() in test code causes the default route to resolve automatically. This can lead unexpected requests and break the tests. This seems to be due to change in ngRoute.

If the current behavior is a bug, please provide the steps to reproduce

Can be reproduced with for example AngularJS Phonecat demo by updating bower.json to use Angular 1.5.1 and running the tests.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions