Testing Components with $onChanges Using angular-stub-changes

My previous post showed how to set up a component’s controller for unit testing using the $componentController service, and how to invoke $onInit. In this post I’ll show an example for testing a component that makes use of the $onChanges hook.