Skip to content

Commit a4cb89e

Browse files
committed
Add test for 0 licenses
The result is the expected without changing the production code
1 parent 703e094 commit a4cb89e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

exercises/tiered_pricing/solutions/xetxeberria-ts/tests/tieredPricing.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ describe("TieredPricing should", () => {
2424
test("return 7599 for 51 licenses", async () => {
2525
expect(tieredPricing(51)).toBe(7599);
2626
});
27+
28+
test("return 0 for 0 licenses", async () => {
29+
expect(tieredPricing(0)).toBe(0);
30+
});
2731
});

0 commit comments

Comments
 (0)