Skip to content

Commit 205d0d5

Browse files
committed
feat(graduated-tiered-pricing): [tpp] 🔴 📐 Triangulate with 26 subscriptions
1 parent 5264576 commit 205d0d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

exercises/graduated_tiered_prices/solutions/codely_triangulation-with-tpp/tests/GraduatedTieredPricing.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,12 @@ describe("Graduated tiered pricing should", () => {
5656

5757
expect(total).toBe(2948);
5858
});
59+
60+
test("return 5994€ for 26 subscription", async () => {
61+
const pricing = new GraduatedTieredPricing();
62+
63+
const total = pricing.for(26);
64+
65+
expect(total).toBe(5994);
66+
});
5967
});

0 commit comments

Comments
 (0)