Configuration:Require Files: [angular.js, angular-mock.js, karma, karma-jasmine, karma-chrome-launcher]
configuration file: karma.conf.js (we can create it manually or via command karma init)
include all files in karma.conf.js as file option for which you wanted to write test cases.
I created a first test case for directive "CompareTo" define in "motorbot.reservation.directives". Here is code
Here is test case for directive "compareTo" in test/directives/directiveSpec.js:
Here is sample for karma.conf.js file: