angular2 테스트를 위해 http 오류를 모의하는 방법 저는 angular2 서비스에 대한 유닛 테스트를 작성하고 있습니다.코드 조각: // jasmine specfile // already injected MockConnection into Http backend.connections.subscribe ((c: MockConnection) => { connection = c; }); // doing get-request myServiceCallwithHttpRequest ().subscribe (result => { // this test passes! expect (result).toEqual ({ "message": "No Such Object" }); // this test fails, do..