Example of unit testing AngularJS directives using Jasmine