diff --git a/packages/http/testing/src/mock_backend.ts b/packages/http/testing/src/mock_backend.ts index 31f72d68cf..5d6bdd173b 100644 --- a/packages/http/testing/src/mock_backend.ts +++ b/packages/http/testing/src/mock_backend.ts @@ -176,7 +176,7 @@ export class MockConnection implements Connection { * this.heroService.getHeroes() * .then((heroes: String[]) => result = heroes) * .catch((error: any) => catchedError = error); - * this.lastConnection.mockRespond(new Response(new ResponseOptions({ + * this.lastConnection.mockError(new Response(new ResponseOptions({ * status: 404, * statusText: 'URL not Found', * })));