From Testing Angular Applications by Jesse Palmer.

Save 40% off Testing Angular Applications. Just enter code anpalmer into the discount code box at checkout at manning.com.

The Angular framework is great for building large-scale web applications that can be maintained and extended. And when you’re building enterprise-level apps, testing is vital to the development process. Testing improves the quality of code and reduces maintenance, saving both time and money. Even though testing is crucial, it’s sometimes neglected since there are few established resources and standards when it comes to modern JavaScript web applications. Developers who know how to build and leverage tests are highly valued by their clients and companies.

Instructions for creating a basic unit test in Angular 2 for testing a component.