feat(subscription): add VIP renewal price notice
This commit is contained in:
@@ -200,16 +200,32 @@ describe("subscription screen helpers", () => {
|
||||
expect(
|
||||
getFirstRechargeOfferView({
|
||||
isFirstRecharge: true,
|
||||
subscriptionType: "vip",
|
||||
vipPlans: vipViews,
|
||||
coinPlans: coinViews,
|
||||
}),
|
||||
).toMatchObject({
|
||||
badgeText: "50% OFF",
|
||||
title: "First Recharge Offer",
|
||||
renewalNotice:
|
||||
"First month 50% off. Renews at the regular price from the second month.",
|
||||
});
|
||||
expect(
|
||||
getFirstRechargeOfferView({
|
||||
isFirstRecharge: true,
|
||||
subscriptionType: "topup",
|
||||
vipPlans: vipViews,
|
||||
coinPlans: coinViews,
|
||||
}),
|
||||
).toMatchObject({
|
||||
badgeText: "50% OFF",
|
||||
title: "First Recharge Offer",
|
||||
renewalNotice: null,
|
||||
});
|
||||
expect(
|
||||
getFirstRechargeOfferView({
|
||||
isFirstRecharge: false,
|
||||
subscriptionType: "vip",
|
||||
vipPlans: vipViews,
|
||||
coinPlans: coinViews,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user