Unit Testing Angular Components with $componentController

Angular 1.5+’s components are great, but testing them properly requires some changes to they way you were used to testing before. Directives were always a bit clunky to test in Angular. But, along the introduction of components we also got the handy $componentController service.