Commit d67e999
committed
feat(ngMock): add expectRoute and whenRoute shortcuts with colon param matching
Add `params` argument to the `when()` and `expect()` functions to give map regex
groups to keys on a new `params` argument of the `respond()` callback.
Add `whenRoute` and `expectRoute` methods to `$httpBackend` to support matching
URLs by patterns similar to those defined for `ngRoute`.
Closes angular#124061 parent a8e03b3 commit d67e999
File tree
2 files changed
+319
-22
lines changed- src/ngMock
- test/ngMock
2 files changed
+319
-22
lines changed
0 commit comments