Skip to content

Commit 20267e0

Browse files
committed
feat(tiered_pricing): 🔴 should return price for 1 subscription
1 parent 9d4dc82 commit 20267e0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

exercises/graduated_tiered_prices/solutions/adrianliz/tests/GraduatedTieredPricing.test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
class GraduatedTieredPricing {
2+
priceFor(subscriptions: number): number {
3+
throw new Error("Not implemented yet");
4+
}
5+
}
6+
17
describe("Graduated tiered pricing should", () => {
2-
// TODO: Graduated tiered pricing spec
8+
it("calculate the price for 1 subscription", () => {
9+
const pricing = new GraduatedTieredPricing();
10+
expect(pricing.priceFor(1)).toBe(299);
11+
});
312
});
413

514
test("test framework working", async () => {

0 commit comments

Comments
 (0)