@@ -1558,7 +1558,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1558
1558
*
1559
1559
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1560
1560
* and returns true if the url matches the current definition.
1561
- * @param {(Object|function(Object))= } headers HTTP headers.
1561
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1562
+ * object and returns true if the headers match the current definition.
1562
1563
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1563
1564
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1564
1565
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1573,7 +1574,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1573
1574
*
1574
1575
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1575
1576
* and returns true if the url matches the current definition.
1576
- * @param {(Object|function(Object))= } headers HTTP headers.
1577
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1578
+ * object and returns true if the headers match the current definition.
1577
1579
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1578
1580
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1579
1581
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1588,7 +1590,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1588
1590
*
1589
1591
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1590
1592
* and returns true if the url matches the current definition.
1591
- * @param {(Object|function(Object))= } headers HTTP headers.
1593
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1594
+ * object and returns true if the headers match the current definition.
1592
1595
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1593
1596
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1594
1597
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1605,7 +1608,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1605
1608
* and returns true if the url matches the current definition.
1606
1609
* @param {(string|RegExp|function(string))= } data HTTP request body or function that receives
1607
1610
* data string and returns true if the data is as expected.
1608
- * @param {(Object|function(Object))= } headers HTTP headers.
1611
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1612
+ * object and returns true if the headers match the current definition.
1609
1613
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1610
1614
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1611
1615
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1622,7 +1626,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1622
1626
* and returns true if the url matches the current definition.
1623
1627
* @param {(string|RegExp|function(string))= } data HTTP request body or function that receives
1624
1628
* data string and returns true if the data is as expected.
1625
- * @param {(Object|function(Object))= } headers HTTP headers.
1629
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1630
+ * object and returns true if the headers match the current definition.
1626
1631
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1627
1632
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1628
1633
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1654,7 +1659,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1654
1659
* @param {string } url HTTP url string that supports colon param matching.
1655
1660
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1656
1661
* request is handled. You can save this object for later use and invoke `respond` again in
1657
- * order to change how a matched request is handled. See #when for more info.
1662
+ * order to change how a matched request is handled.
1663
+ * See {@link ngMock.$httpBackend#when `when`} for more info.
1658
1664
*/
1659
1665
$httpBackend . whenRoute = function ( method , url ) {
1660
1666
var pathObj = parseRoute ( url ) ;
@@ -1743,8 +1749,9 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1743
1749
* Creates a new request expectation for GET requests. For more info see `expect()`.
1744
1750
*
1745
1751
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1746
- * and returns true if the url matches the current definition.
1747
- * @param {Object= } headers HTTP headers.
1752
+ * and returns true if the url matches the current expectation.
1753
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1754
+ * object and returns true if the headers match the current expectation.
1748
1755
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1749
1756
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1750
1757
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1758,8 +1765,9 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1758
1765
* Creates a new request expectation for HEAD requests. For more info see `expect()`.
1759
1766
*
1760
1767
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1761
- * and returns true if the url matches the current definition.
1762
- * @param {Object= } headers HTTP headers.
1768
+ * and returns true if the url matches the current expectation.
1769
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1770
+ * object and returns true if the headers match the current expectation.
1763
1771
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1764
1772
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1765
1773
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1773,8 +1781,9 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1773
1781
* Creates a new request expectation for DELETE requests. For more info see `expect()`.
1774
1782
*
1775
1783
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1776
- * and returns true if the url matches the current definition.
1777
- * @param {Object= } headers HTTP headers.
1784
+ * and returns true if the url matches the current expectation.
1785
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1786
+ * object and returns true if the headers match the current expectation.
1778
1787
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1779
1788
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1780
1789
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1788,11 +1797,12 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1788
1797
* Creates a new request expectation for POST requests. For more info see `expect()`.
1789
1798
*
1790
1799
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1791
- * and returns true if the url matches the current definition .
1800
+ * and returns true if the url matches the current expectation .
1792
1801
* @param {(string|RegExp|function(string)|Object)= } data HTTP request body or function that
1793
1802
* receives data string and returns true if the data is as expected, or Object if request body
1794
1803
* is in JSON format.
1795
- * @param {Object= } headers HTTP headers.
1804
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1805
+ * object and returns true if the headers match the current expectation.
1796
1806
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1797
1807
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1798
1808
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1806,11 +1816,12 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1806
1816
* Creates a new request expectation for PUT requests. For more info see `expect()`.
1807
1817
*
1808
1818
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1809
- * and returns true if the url matches the current definition .
1819
+ * and returns true if the url matches the current expectation .
1810
1820
* @param {(string|RegExp|function(string)|Object)= } data HTTP request body or function that
1811
1821
* receives data string and returns true if the data is as expected, or Object if request body
1812
1822
* is in JSON format.
1813
- * @param {Object= } headers HTTP headers.
1823
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1824
+ * object and returns true if the headers match the current expectation.
1814
1825
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1815
1826
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1816
1827
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1824,11 +1835,12 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1824
1835
* Creates a new request expectation for PATCH requests. For more info see `expect()`.
1825
1836
*
1826
1837
* @param {string|RegExp|function(string)= } url HTTP url or function that receives a url
1827
- * and returns true if the url matches the current definition .
1838
+ * and returns true if the url matches the current expectation .
1828
1839
* @param {(string|RegExp|function(string)|Object)= } data HTTP request body or function that
1829
1840
* receives data string and returns true if the data is as expected, or Object if request body
1830
1841
* is in JSON format.
1831
- * @param {Object= } headers HTTP headers.
1842
+ * @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1843
+ * object and returns true if the headers match the current expectation.
1832
1844
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1833
1845
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1834
1846
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1842,7 +1854,7 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1842
1854
* Creates a new request expectation for JSONP requests. For more info see `expect()`.
1843
1855
*
1844
1856
* @param {string|RegExp|function(string)= } url HTTP url or function that receives an url
1845
- * and returns true if the url matches the current definition .
1857
+ * and returns true if the url matches the current expectation .
1846
1858
* @param {(Array)= } keys Array of keys to assign to regex matches in request url described above.
1847
1859
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1848
1860
* request is handled. You can save this object for later use and invoke `respond` again in
@@ -1860,7 +1872,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1860
1872
* @param {string } url HTTP url string that supports colon param matching.
1861
1873
* @returns {requestHandler } Returns an object with `respond` method that controls how a matched
1862
1874
* request is handled. You can save this object for later use and invoke `respond` again in
1863
- * order to change how a matched request is handled. See #expect for more info.
1875
+ * order to change how a matched request is handled.
1876
+ * See {@link ngMock.$httpBackend#expect `expect`} for more info.
1864
1877
*/
1865
1878
$httpBackend . expectRoute = function ( method , url ) {
1866
1879
var pathObj = parseRoute ( url ) ;
0 commit comments