Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Nov 29, 2024
1 parent c39a1a4 commit 8601108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CryptomatorTests/Purchase/PurchaseViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,20 +153,23 @@ class PurchaseViewModelTests: IAPViewModelTestCase {

private var purchaseTrialCell: Item {
return .purchaseCell(.init(productName: LocalizedString.getValue("purchase.product.trial"),
productDetail: nil,
price: LocalizedString.getValue("purchase.product.pricing.free"),
purchaseDetail: LocalizedString.getValue("purchase.product.trial.duration"),
productIdentifier: .thirtyDayTrial))
}

private var yearlySubscriptionCell: Item {
return .purchaseCell(.init(productName: LocalizedString.getValue("purchase.product.yearlySubscription"),
productDetail: nil,
price: "$5.99",
purchaseDetail: LocalizedString.getValue("purchase.product.yearlySubscription.duration"),
productIdentifier: .yearlySubscription))
}

private var lifetimeLicenseCell: Item {
return .purchaseCell(.init(productName: LocalizedString.getValue("purchase.product.lifetimeLicense"),
productDetail: nil,
price: "$11.99",
purchaseDetail: LocalizedString.getValue("purchase.product.lifetimeLicense.duration"),
productIdentifier: .fullVersion))
Expand Down
2 changes: 2 additions & 0 deletions CryptomatorTests/Purchase/UpgradeViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ class UpgradeViewModelTests: IAPViewModelTestCase {

private var freeUpgradeCell: Item {
return .purchaseCell(.init(productName: LocalizedString.getValue("purchase.product.freeUpgrade"),
productDetail: nil,
price: LocalizedString.getValue("purchase.product.pricing.free"),
purchaseDetail: nil,
productIdentifier: .freeUpgrade))
}

private var paidUpgradeCell: Item {
return .purchaseCell(.init(productName: LocalizedString.getValue("purchase.product.donateAndUpgrade"),
productDetail: nil,
price: "$1.99",
purchaseDetail: LocalizedString.getValue("purchase.product.lifetimeLicense.duration"),
productIdentifier: .paidUpgrade))
Expand Down

0 comments on commit 8601108

Please sign in to comment.