Chapter 2. Your First Spec
This chapter is about the basics, and we are going to guide you through how to write your first spec, think in test-first terms for development, and also show you all the available global Jasmine functions. By the end of the chapter, you should know how Jasmine works and be ready to start doing your first tests by yourself.
The Investment Tracker application
To get you started, we need an example scenario: consider that you are developing an application to track investments in the stock market.
The following screenshot of the form illustrates how a user might create a new investment on this application:
Get Jasmine JavaScript Testing - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.