Angular2 unit testing : testing a component's constructor
问题 All is in the title : how can one test what is done in the component's constructor ? For your information, I am using a service that requires a setting, and I would like to see if the 2 methods that I call in the constructor are called correctly. My component's constructor : constructor( public router: Router, private profilService: ProfileService, private dragula: DragulaService, private alerter: AlertService ) { dragula.drag.subscribe((value) => { this.onDrag(value); }); dragula.dragend