feat(common): add provideLocationMocks() function to provide Location mocks#47674
feat(common): add provideLocationMocks() function to provide Location mocks#47674AndrewKushnir wants to merge 1 commit intoangular:mainfrom
provideLocationMocks() function to provide Location mocks#47674Conversation
atscott
left a comment
There was a problem hiding this comment.
We can remove this now as well: https://github.com/angular/angular/blob/main/packages/router/testing/src/provide_router_for_testing.ts
And then all references to that will have to do provideRouter(...), provideLocationMocks()
…on mocks This commit adds the `provideLocationMocks()` function that returns mocks for the `Location` and `LocationStrategy` classes. This function can be used in tests to configure an environment where it's possible to fire simulated location events (helpful when testing Router configuration).
85fb798 to
503c4cb
Compare
dylhunn
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
|
Merge-assistance (cc @jessicajaniuk): this PR is ready for merge, but needs one more |
jessicajaniuk
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
|
This PR was merged into the repository by commit c0c7efa. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit adds the
provideLocationMocks()function that returns mocks for theLocationandLocationStrategyclasses. This function can be used in tests to configure an environment where it's possible to fire simulated location events (helpful when testing Router configuration).PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?