Chapter 1. Getting Started with Jasmine Framework

In this chapter, we will cover:

  • Writing your first Jasmine test
  • Adding specs to your Jasmine test
  • Adding expectations and matchers to the test
  • Applying different matchers to the Jasmine test
  • Applying setup and teardown functions to the Jasmine test
  • Using the "this" keyword

Introduction

Nowadays, JavaScript has become the de facto programming language to build and empower frontend/web applications. We can use JavaScript to develop simple or complex applications. However, applications in production are often vulnerable to bugs caused by design inconsistencies, logical implementation errors, and similar issues. For this reason, it is usually difficult to predict how applications will behave in real-time environments, ...

Get Jasmine Cookbook 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.