Some examples of AngularJs code being tested with Jasmine