O'Reilly logo

Jasmine Cookbook by Munish Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Declaring pending specs with Jasmine tests

Sometimes, the specific functionality of an application gets changed or becomes obsolete due to new business rules or change requests raised by stakeholders. In this situation, such legacy Jasmine tests also becomes obsolete and there is a need to remove them from the existing suites. In this recipe, you will learn the usage of pending specs and how to handle the specs that get changed or obsolete.

Getting ready

You will learn this recipe with the help of the second recipe in this chapter, Writing a Jasmine test with Custom Matchers.

To understand the concept of pending specs, consider that a few of the business rules have been changed for both the scenarios described in the second recipe. Now, let's consider ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required