단위 테스트 클릭 이벤트(Angular) Angular 2 앱에 유닛 테스트를 추가하려고 합니다.내 중 에가 있는 .(click)조련사 하면 사용자가 버튼을 클릭하면 에 정의된 함수가 호출됩니다에 정의된 됩니다..ts수업 파일 이 합니다.이 기능은 console.log 창에 버튼을 눌렀다는 메시지를 출력합니다.를 위한 console.log메시지: describe('Component: ComponentToBeTested', () => { var component: ComponentToBeTested; beforeEach(() => { component = new ComponentToBeTested(); spyOn(console, 'log'); }); it('should call onEditButtonCli..