Commit e19dbc7
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 angular#67611 parent 06d0f1a commit e19dbc7
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1810 | 1810 | | |
1811 | 1811 | | |
1812 | 1812 | | |
1813 | | - | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
1814 | 1816 | | |
1815 | 1817 | | |
1816 | 1818 | | |
| |||
0 commit comments