Jasmine is an open source behavior-driven development (BDD) framework for testing JavaScript code. Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript (JS) and other languages. In his article, Gerard Sans offers a presentation of Jasmine, discusses the unit testing of AngularJS and shares some Unit Testing recipes for Angular 2: Components, Services, Http and MockBackend, Directives, Pipes, Routes, Observables and EventEmitter.
The article starts with a presentation of Jasmine and its main concepts. Then Gerard Sans describes how to setup Jasmine to test Angular applications and how to use dependency injection for unit testing. Finally, the article proposes some recipes to test different aspects of Angular2 with code examples. The article is well structured and the many code examples allow to fully understand the proposed content.
You can read the full article on https://medium.com/google-developer-experts/angular-2-unit-testing-with-jasmine-defe20421584