Skip to content

Ineligible customer does not get discount

The negative path of the same rule. Pair it with the positive path so the rule is documented from both sides.

import { story } from 'executable-stories-vitest';
import { it } from 'vitest';
it("Ineligible customer does not get discount", ({ task }) => {
story.init(task);
story.given("the customer is not eligible for discounts");
story.when("the customer checks out");
story.then("no discount should be applied");
});
### ✅ Ineligible customer does not get discount
- **Given** the customer is not eligible for discounts
- **When** the customer checks out
- **Then** no discount should be applied