Skip to content

Commit

Permalink
VariableProcessor: fix tests (#1572)
Browse files Browse the repository at this point in the history
This seemed to have been a bad merge from #1569.
  • Loading branch information
NachoSoto authored Jan 25, 2024
1 parent db92922 commit c923be2
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.revenuecat.purchases.ui.revenuecatui.data.processed

import androidx.test.ext.junit.runners.AndroidJUnit4
import com.revenuecat.purchases.Package
import com.revenuecat.purchases.PackageType
import com.revenuecat.purchases.ui.revenuecatui.data.testdata.MockResourceProvider
import com.revenuecat.purchases.ui.revenuecatui.data.testdata.TestData
import com.revenuecat.purchases.ui.revenuecatui.helpers.ResourceProvider
Expand Down Expand Up @@ -143,13 +142,13 @@ class VariableProcessorTest {

@Test
fun `process variables processes product_name`() {
expectVariablesResult("{{ product_name }}", "Annual (App name)", rcPackage = TestData.Packages.annual)
expectVariablesResult("{{ product_name }}", "Monthly (App name)", rcPackage = TestData.Packages.monthly)
expectVariablesResult("{{ product_name }}", "Weekly (App name)", rcPackage = TestData.Packages.weekly)
expectVariablesResult("{{ product_name }}", "2 month (App name)", rcPackage = TestData.Packages.bimonthly)
expectVariablesResult("{{ product_name }}", "3 month (App name)", rcPackage = TestData.Packages.quarterly)
expectVariablesResult("{{ product_name }}", "6 month (App name)", rcPackage = TestData.Packages.semester)
expectVariablesResult("{{ product_name }}", "Lifetime (App name)", rcPackage = TestData.Packages.lifetime)
expectVariablesResult("{{ product_name }}", "Annual", rcPackage = TestData.Packages.annual)
expectVariablesResult("{{ product_name }}", "Monthly", rcPackage = TestData.Packages.monthly)
expectVariablesResult("{{ product_name }}", "Weekly", rcPackage = TestData.Packages.weekly)
expectVariablesResult("{{ product_name }}", "2 month", rcPackage = TestData.Packages.bimonthly)
expectVariablesResult("{{ product_name }}", "3 month", rcPackage = TestData.Packages.quarterly)
expectVariablesResult("{{ product_name }}", "6 month", rcPackage = TestData.Packages.semester)
expectVariablesResult("{{ product_name }}", "Lifetime", rcPackage = TestData.Packages.lifetime)
}

// endregion
Expand Down

0 comments on commit c923be2

Please sign in to comment.