Tips and tricks on how to unit test services, controllers and providers in AngularJS
Switch branches/tags
Nothing to show
Clone or download
Latest commit 62b7baa May 2, 2018
Failed to load latest commit information.
src Initial commit Mar 26, 2015
tests Initial commit Mar 26, 2015
.gitignore Added .gitignore Mar 26, 2015 Initial commit Mar 26, 2015
karma.conf.js Initial commit Mar 26, 2015
package.json update package.json for resolve throw error in deprecated package May 2, 2018

This is the code accompanying a tutorial on tips and tricks for unit testing in AngularJS.

##How to run

  • Ensure Node.js & npm are installed
  • npm install -g karma-cli (to install the karma-cli package globally)
  • npm install (to install the dependencies)
  • karma start (to start karma and run tests)

The unit tests are written in Jasmine and are run by Karma using PhantomJS.