diff options
| author | Caio Cunha | 2013-10-22 09:41:51 -0400 | 
|---|---|---|
| committer | Igor Minar | 2014-03-18 15:19:26 -0700 | 
| commit | d6cfcacee101f2738e0a224a3377232ff85f78a4 (patch) | |
| tree | 4f3237302917e7e12fab43980f528c5007413234 /src/ng | |
| parent | 299b220f5e05e1d4e26bfd58d0b2fd7329ca76b1 (diff) | |
| download | angular.js-d6cfcacee101f2738e0a224a3377232ff85f78a4.tar.bz2 | |
feat(ngMock.$httpBackend): added support for function as URL matcher
It's now possible to pass a function to match the URL in $httpBackend mocked
expectations. This gives a more sophisticate control over the URL matching
without requiring complex RegExp mantainance or the workaround of creating
an object with a `test` function in order to mimic RegExp interface.
This approach was suggested in [this
thread](https://groups.google.com/d/msg/angular/3QsCUEvvxlM/Q4C4ZIqNIuEJ)
Closes #4580
Diffstat (limited to 'src/ng')
0 files changed, 0 insertions, 0 deletions
