Notes on unit testing patterns used with AngularJS.