Jasmine is a powerful JavaScript unit testing framework. It provides a clean mechanism to test synchronous and asynchronous JavaScript code. It is a behavior-driven development framework that provides descriptive test cases, which focus on business value more than on technical details. As it is written in a simple, natural language, Jasmine tests can be read by nonprogrammers and provide a clear description when a single test succeeds or fails and the reason behind its failure.
Tip
Behavior-driven development (BDD) is an agile software development technique introduced by Dan North; it focuses on writing descriptive tests from a business perspective. BDD extends TDD by writing test cases that test the software behavior (requirements) in a natural language that anyone (does not necessarily have to be a programmer) can read and understand. The names of the unit tests are complete sentences that usually start with the word "should," and they are written in the order of their business...