A simple example of unit testing an AngularJS controller
Install NodeJS packages:
$ npm install
Start up a web server in this directory. For example:
$ python -m SimpleHTTPServer 8000
Then open a browser at localhost:8000.
Run the Karma tests:
$ npm test