Defining Jasmine specs corresponding to a user story
In this recipe, we will learn how to identify and define the Jasmine specs for a user story.
Let's assume you are working with a United States company called <ABC> Inc. As per the Federal/State government, every employee of the company has to pay tax on their income. Currently, you are developing a utility/web page with JavaScript to evaluate tax/TDS for individuals. There are different business rules (that is, tax brackets, standard deduction, child tax credit, and so on) that exist for evaluating tax/TDS for every individual.
"As a single taxpayer, I want to evaluate or estimate Tax/TDS on my income so that I can do my financial planning effectively."
So, based on the information provided in the previous paragraph, let's consider the following scenarios in the current context, that is, TDS/tax should be evaluated or estimated on the gross taxable income as per the tax brackets and rules defined by the Federal/State Government:
Scenario...