From 3857c8226e1e9eac76571b92407a36ef14f43765 Mon Sep 17 00:00:00 2001 From: agpreynolds Date: Fri, 20 May 2016 17:19:59 +0100 Subject: [PATCH] docs(MockConnection) update mockRespond usage example (#8487) Closes: #8486 --- modules/@angular/http/testing/mock_backend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/http/testing/mock_backend.ts b/modules/@angular/http/testing/mock_backend.ts index 5d2345a0bd..58e7261d57 100644 --- a/modules/@angular/http/testing/mock_backend.ts +++ b/modules/@angular/http/testing/mock_backend.ts @@ -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' * ``` * */