From d963bad39cacfbc6048954d6c15fcea17fcd15c5 Mon Sep 17 00:00:00 2001 From: Robin Janssens Date: Wed, 30 Mar 2016 13:45:33 +0100 Subject: [PATCH] docs($httpBackend): updated response data api Updated docs to reflect that response data can either be an object _or_ a string --- src/ngMock/angular-mocks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 31d043dc928f..a31594681a1b 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -1420,7 +1420,7 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) { * `{function([status,] data[, headers, statusText]) * | function(function(method, url, data, headers, params)}` * – The respond method takes a set of static data to be returned or a function that can - * return an array containing response status (number), response data (string), response + * return an array containing response status (number), response data (Object | string), response * headers (Object), and the text for the status (string). The respond method returns the * `requestHandler` object for possible overrides. */ @@ -1610,7 +1610,7 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) { * `{function([status,] data[, headers, statusText]) * | function(function(method, url, data, headers, params)}` * – The respond method takes a set of static data to be returned or a function that can - * return an array containing response status (number), response data (string), response + * return an array containing response status (number), response data (Object | string), response * headers (Object), and the text for the status (string). The respond method returns the * `requestHandler` object for possible overrides. */ @@ -2330,7 +2330,7 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) { * `{function([status,] data[, headers, statusText]) * | function(function(method, url, data, headers, params)}` * – The respond method takes a set of static data to be returned or a function that can return - * an array containing response status (number), response data (string), response headers + * an array containing response status (number), response data (Object | string), response headers * (Object), and the text for the status (string). * - passThrough – `{function()}` – Any request matching a backend definition with * `passThrough` handler will be passed through to the real backend (an XHR request will be made