@@ -1246,8 +1246,9 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
1246
1246
*
1247
1247
* @param {string } method HTTP method.
1248
1248
* @param {string|RegExp } url HTTP url.
1249
- * @param {(string|RegExp|function(string))= } data HTTP request body or function that receives
1250
- * data string and returns true if the data is as expected.
1249
+ * @param {(string|RegExp|function(string)|Object)= } data HTTP request body or function that
1250
+ * receives data string and returns true if the data is as expected, or Object if request body
1251
+ * is in JSON format.
1251
1252
* @param {(Object|function(Object))= } headers HTTP headers or function that receives http header
1252
1253
* object and returns true if the headers match the current expectation.
1253
1254
* @returns {requestHandler } Returns an object with `respond` method that control how a matched
@@ -1316,8 +1317,9 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
1316
1317
* Creates a new request expectation for POST requests. For more info see `expect()`.
1317
1318
*
1318
1319
* @param {string|RegExp } url HTTP url.
1319
- * @param {(string|RegExp|function(string))= } data HTTP request body or function that receives
1320
- * data string and returns true if the data is as expected.
1320
+ * @param {(string|RegExp|function(string)|Object)= } data HTTP request body or function that
1321
+ * receives data string and returns true if the data is as expected, or Object if request body
1322
+ * is in JSON format.
1321
1323
* @param {Object= } headers HTTP headers.
1322
1324
* @returns {requestHandler } Returns an object with `respond` method that control how a matched
1323
1325
* request is handled.
@@ -1331,8 +1333,9 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
1331
1333
* Creates a new request expectation for PUT requests. For more info see `expect()`.
1332
1334
*
1333
1335
* @param {string|RegExp } url HTTP url.
1334
- * @param {(string|RegExp|function(string))= } data HTTP request body or function that receives
1335
- * data string and returns true if the data is as expected.
1336
+ * @param {(string|RegExp|function(string)|Object)= } data HTTP request body or function that
1337
+ * receives data string and returns true if the data is as expected, or Object if request body
1338
+ * is in JSON format.
1336
1339
* @param {Object= } headers HTTP headers.
1337
1340
* @returns {requestHandler } Returns an object with `respond` method that control how a matched
1338
1341
* request is handled.
@@ -1346,8 +1349,9 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
1346
1349
* Creates a new request expectation for PATCH requests. For more info see `expect()`.
1347
1350
*
1348
1351
* @param {string|RegExp } url HTTP url.
1349
- * @param {(string|RegExp|function(string))= } data HTTP request body or function that receives
1350
- * data string and returns true if the data is as expected.
1352
+ * @param {(string|RegExp|function(string)|Object)= } data HTTP request body or function that
1353
+ * receives data string and returns true if the data is as expected, or Object if request body
1354
+ * is in JSON format.
1351
1355
* @param {Object= } headers HTTP headers.
1352
1356
* @returns {requestHandler } Returns an object with `respond` method that control how a matched
1353
1357
* request is handled.
0 commit comments