@@ -1619,20 +1619,20 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1619
1619
1620
1620
/**
1621
1621
* @ngdoc method
1622
- * @name $httpBackend#matchLatestDefinition
1622
+ * @name $httpBackend#matchLatestDefinitionEnabled
1623
1623
* @description
1624
1624
* This method can be used to change which mocked responses `$httpBackend` returns, when defining
1625
1625
* them with {@link ngMock.$httpBackend#when $httpBackend.when()} (and shortcut methods).
1626
1626
* By default, `$httpBackend` returns the first definition that matches. When setting
1627
- * `$http.matchLatestDefinition (true)`, it will use the last response that matches, i.e. the
1627
+ * `$http.matchLatestDefinitionEnabled (true)`, it will use the last response that matches, i.e. the
1628
1628
* one that was added last.
1629
1629
*
1630
1630
* ```js
1631
1631
* hb.when('GET', '/url1').respond(200, 'content', {});
1632
1632
* hb.when('GET', '/url1').respond(201, 'another', {});
1633
1633
* hb('GET', '/url1'); // receives "content"
1634
1634
*
1635
- * $http.matchLatestDefinition (true)
1635
+ * $http.matchLatestDefinitionEnabled (true)
1636
1636
* hb('GET', '/url1'); // receives "another"
1637
1637
*
1638
1638
* hb.when('GET', '/url1').respond(201, 'onemore', {});
@@ -1641,7 +1641,7 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1641
1641
*
1642
1642
* This is useful if a you have a default response that is overriden inside specific tests.
1643
1643
*
1644
- * Note that different from config methods on providers, `matchLatestDefinition ()` can be changed
1644
+ * Note that different from config methods on providers, `matchLatestDefinitionEnabled ()` can be changed
1645
1645
* even when the application is already running.
1646
1646
*
1647
1647
* @param {Boolean= } value value to set, either `true` or `false`. Default is `false`.
@@ -2919,21 +2919,21 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2919
2919
*/
2920
2920
/**
2921
2921
* @ngdoc method
2922
- * @name $httpBackend#matchLatestDefinition
2922
+ * @name $httpBackend#matchLatestDefinitionEnabled
2923
2923
* @module ngMockE2E
2924
2924
* @description
2925
2925
* This method can be used to change which mocked responses `$httpBackend` returns, when defining
2926
2926
* them with {@link ngMock.$httpBackend#when $httpBackend.when()} (and shortcut methods).
2927
2927
* By default, `$httpBackend` returns the first definition that matches. When setting
2928
- * `$http.matchLatestDefinition (true)`, it will use the last response that matches, i.e. the
2928
+ * `$http.matchLatestDefinitionEnabled (true)`, it will use the last response that matches, i.e. the
2929
2929
* one that was added last.
2930
2930
*
2931
2931
* ```js
2932
2932
* hb.when('GET', '/url1').respond(200, 'content', {});
2933
2933
* hb.when('GET', '/url1').respond(201, 'another', {});
2934
2934
* hb('GET', '/url1'); // receives "content"
2935
2935
*
2936
- * $http.matchLatestDefinition (true)
2936
+ * $http.matchLatestDefinitionEnabled (true)
2937
2937
* hb('GET', '/url1'); // receives "another"
2938
2938
*
2939
2939
* hb.when('GET', '/url1').respond(201, 'onemore', {});
@@ -2942,7 +2942,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2942
2942
*
2943
2943
* This is useful if a you have a default response that is overriden inside specific tests.
2944
2944
*
2945
- * Note that different from config methods on providers, `matchLatestDefinition ()` can be changed
2945
+ * Note that different from config methods on providers, `matchLatestDefinitionEnabled ()` can be changed
2946
2946
* even when the application is already running.
2947
2947
*
2948
2948
* @param {Boolean= } value value to set, either `true` or `false`. Default is `false`.
0 commit comments