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' * ``` * */