Angular2에서 이벤트 이미터를 테스트할 방법이 있습니까? 이벤트 이미터를 사용하는 구성 요소가 있으며 페이지의 다른 사용자가 클릭하면 이벤트 이미터가 사용됩니다.단위 테스트 중에 이벤트 이미터를 관찰하고 TestComponentBuilder를 사용하여 EventEmitter.next() 메서드를 트리거하는 요소를 클릭하여 전송된 내용을 확인할 수 있는 방법이 있습니까?테스트는 다음과 같습니다. it('should emit on click', () => { const fixture = TestBed.createComponent(MyComponent); // spy on event emitter const component = fixture.componentInstance; spyOn(component..