With Angular 4 it is possible to test the Component's template, for example checking if clicking a button triggers the expected method and stuff like that.
But how can templates be included in the test coverage? By default they are not (using Angular CLI tests with Karma+Jasmine+Istanbul).
In my opinion, you can only test the function that calls when you click, because you don't need to verify that if you click angular will call this function.
But if you want to test it any way you can do it like that