Skip to content

Commit

Permalink
refactor: remove ios leo monthly and annual for beta (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 authored Jul 25, 2024
1 parent 9035d6d commit e7e4a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions services/skus/skus.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ func skuNameByMobileName(subID string) (string, error) {
return "brave-leo-premium", nil

// iOS Leo Monthly.
case "braveleo.monthly", "beta.braveleo.monthly", "nightly.braveleo.monthly":
case "braveleo.monthly", "nightly.braveleo.monthly":
return "brave-leo-premium", nil

// Android Leo Annual.
case "brave.leo.yearly", "beta.leo.yearly", "nightly.leo.yearly":
return "brave-leo-premium-year", nil

// iOS Leo Annual.
case "braveleo.yearly", "beta.braveleo.yearly", "nightly.braveleo.yearly":
case "braveleo.yearly", "nightly.braveleo.yearly":
return "brave-leo-premium-year", nil

// Android VPN Monthly.
Expand Down
12 changes: 0 additions & 12 deletions services/skus/skus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ func TestSKUNameByMobileName(t *testing.T) {
exp: tcExpected{sku: "brave-leo-premium"},
},

{
name: "ios_leo_monthly_beta",
given: "beta.braveleo.monthly",
exp: tcExpected{sku: "brave-leo-premium"},
},

{
name: "ios_leo_monthly_nightly",
given: "nightly.braveleo.monthly",
Expand Down Expand Up @@ -83,12 +77,6 @@ func TestSKUNameByMobileName(t *testing.T) {
exp: tcExpected{sku: "brave-leo-premium-year"},
},

{
name: "ios_leo_annual_beta",
given: "beta.braveleo.yearly",
exp: tcExpected{sku: "brave-leo-premium-year"},
},

{
name: "ios_leo_annual_nightly",
given: "nightly.braveleo.yearly",
Expand Down

0 comments on commit e7e4a34

Please sign in to comment.