I\'m trying to add unit tests to my Angular 8 app. In one of my components, there is a button with a (click) handler. When the user clicks the button a function is called which