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