docs(MockConnection) update mockRespond usage example (#8487)
Closes: #8486
This commit is contained in:
parent
595bcdd1ac
commit
3857c8226e
|
@ -50,7 +50,7 @@ export class MockConnection implements Connection {
|
||||||
* var connection;
|
* var connection;
|
||||||
* backend.connections.subscribe(c => connection = c);
|
* backend.connections.subscribe(c => connection = c);
|
||||||
* http.request('data.json').subscribe(res => console.log(res.text()));
|
* 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'
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue