deyvidfk / angular-js-unit-testing-services-controllers-providers

Tips and tricks on how to unit test services, controllers and providers in AngularJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Tips and tricks on how to unit test services, controllers and providers in AngularJS


Languages

Language:JavaScript 100.0%