Source : http://rockyj.in/2013/08/03/testing_angularjs.html