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 the following scenarios as per the new business rules:
- Scenario-1: Age is not a criteria to place the online order
- Scenario-2: Only the first name is required to place the online order
How to do it...
You need to perform the following steps...