docs(MockConnection) update mockRespond usage example (#8487)

Closes: #8486
This commit is contained in:
agpreynolds 2016-05-20 17:19:59 +01:00 committed by Miško Hevery
parent 595bcdd1ac
commit 3857c8226e
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ export class MockConnection implements Connection {
* var connection;
* backend.connections.subscribe(c => connection = c);
* http.request('data.json').subscribe(res => console.log(res.text()));
* connection.mockRespond(new Response('fake response')); //logs 'fake response'
* connection.mockRespond(new Response(new ResponseOptions({ body: 'fake response' }))); //logs 'fake response'
* ```
*
*/