diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngMock/angular-mocks.js | 46 | 
1 files changed, 23 insertions, 23 deletions
| diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index bb2ac754..02e54329 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -1178,7 +1178,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * Creates a new backend definition.     *     * @param {string} method HTTP method. -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives     *   data string and returns true if the data is as expected. @@ -1217,7 +1217,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new backend definition for GET requests. For more info see `when()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(Object|function(Object))=} headers HTTP headers.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched @@ -1230,7 +1230,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new backend definition for HEAD requests. For more info see `when()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(Object|function(Object))=} headers HTTP headers.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched @@ -1243,7 +1243,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new backend definition for DELETE requests. For more info see `when()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(Object|function(Object))=} headers HTTP headers.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched @@ -1256,7 +1256,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new backend definition for POST requests. For more info see `when()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives     *   data string and returns true if the data is as expected. @@ -1271,7 +1271,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new backend definition for PUT requests.  For more info see `when()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives     *   data string and returns true if the data is as expected. @@ -1286,7 +1286,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new backend definition for JSONP requests. For more info see `when()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched     * request is handled. @@ -1301,7 +1301,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * Creates a new request expectation.     *     * @param {string} method HTTP method. -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that     *  receives data string and returns true if the data is as expected, or Object if request body @@ -1334,7 +1334,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new request expectation for GET requests. For more info see `expect()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {Object=} headers HTTP headers.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched @@ -1347,7 +1347,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new request expectation for HEAD requests. For more info see `expect()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {Object=} headers HTTP headers.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched @@ -1360,7 +1360,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new request expectation for DELETE requests. For more info see `expect()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {Object=} headers HTTP headers.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched @@ -1373,7 +1373,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new request expectation for POST requests. For more info see `expect()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that     *  receives data string and returns true if the data is as expected, or Object if request body @@ -1389,7 +1389,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new request expectation for PUT requests. For more info see `expect()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that     *  receives data string and returns true if the data is as expected, or Object if request body @@ -1405,7 +1405,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new request expectation for PATCH requests. For more info see `expect()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that     *  receives data string and returns true if the data is as expected, or Object if request body @@ -1421,7 +1421,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {     * @description     * Creates a new request expectation for JSONP requests. For more info see `expect()`.     * -   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  +   * @param {string|RegExp|function(string)} url HTTP url or function that receives the url     *   and returns true if the url match the current definition.     * @returns {requestHandler} Returns an object with `respond` method that control how a matched     *   request is handled. @@ -1824,7 +1824,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * Creates a new backend definition.   *   * @param {string} method HTTP method. - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @param {(string|RegExp)=} data HTTP request body.   * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header @@ -1849,7 +1849,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * @description   * Creates a new backend definition for GET requests. For more info see `when()`.   * - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @param {(Object|function(Object))=} headers HTTP headers.   * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that @@ -1863,7 +1863,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * @description   * Creates a new backend definition for HEAD requests. For more info see `when()`.   * - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @param {(Object|function(Object))=} headers HTTP headers.   * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that @@ -1877,7 +1877,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * @description   * Creates a new backend definition for DELETE requests. For more info see `when()`.   * - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @param {(Object|function(Object))=} headers HTTP headers.   * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that @@ -1891,7 +1891,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * @description   * Creates a new backend definition for POST requests. For more info see `when()`.   * - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @param {(string|RegExp)=} data HTTP request body.   * @param {(Object|function(Object))=} headers HTTP headers. @@ -1906,7 +1906,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * @description   * Creates a new backend definition for PUT requests.  For more info see `when()`.   * - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @param {(string|RegExp)=} data HTTP request body.   * @param {(Object|function(Object))=} headers HTTP headers. @@ -1921,7 +1921,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * @description   * Creates a new backend definition for PATCH requests.  For more info see `when()`.   * - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @param {(string|RegExp)=} data HTTP request body.   * @param {(Object|function(Object))=} headers HTTP headers. @@ -1936,7 +1936,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {   * @description   * Creates a new backend definition for JSONP requests. For more info see `when()`.   * - * @param {string|RegExp|function(string)} url HTTP url or function that receives the url  + * @param {string|RegExp|function(string)} url HTTP url or function that receives the url   *   and returns true if the url match the current definition.   * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that   *   control how a matched request is handled. | 
