Tips and tricks on how to unit test services, controllers and providers in AngularJS
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 62b7baa May 2, 2018
Permalink
Failed to load latest commit information.
src Initial commit Mar 26, 2015
tests Initial commit Mar 26, 2015
.gitignore Added .gitignore Mar 26, 2015
README.md 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

README.md

This is the code accompanying a tutorial on tips and tricks for unit testing in AngularJS. http://www.sitepoint.com/unit-testing-angularjs-services-controllers-providers

##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.