SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

docs(ngMock): fix example for $http respond() helper with function as 1st param

The  `whenPOST` method should return a response object containing status, response body and headers.
If omitted the following error will be thrown:

`Uncaught TypeError: Cannot read property '2' of undefined`

The documentation doesn't make it very clear, so I think it will be appropriate to add it here.

Closes #6761
S
Søren Louv-Jansen committed
e19dbc7793c285ec25d471751403f8b14f43efa8
Parent: 06d0f1a
Committed by Caitlin Potter <caitpotter88@gmail.com> on 4/24/2014, 1:41:54 PM