Skip to content

Commit

Permalink
Merge pull request #2285 from wordpress-mobile/fix-tests-stripe
Browse files Browse the repository at this point in the history
Fix stripe extension test
  • Loading branch information
AnirudhBhat authored Feb 11, 2022
2 parents de86ca2 + 4886619 commit 7ef8ba5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import org.wordpress.android.fluxc.store.WCInPersonPaymentsStore.InPersonPayment
import javax.inject.Inject
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import java.util.Locale

class ReleaseStack_InPersonPaymentsStripeExtensionTest : ReleaseStack_WCBase() {
@Inject internal lateinit var store: WCInPersonPaymentsStore
Expand Down Expand Up @@ -46,7 +47,7 @@ class ReleaseStack_InPersonPaymentsStripeExtensionTest : ReleaseStack_WCBase() {
assertEquals("US", result.model?.country)
assertEquals(false, result.model?.hasPendingRequirements)
assertEquals(false, result.model?.hasOverdueRequirements)
assertTrue(result.model?.statementDescriptor.isNullOrEmpty())
assertEquals(result.model?.statementDescriptor?.toLowerCase(Locale.ROOT), "custom descriptor")
assertEquals("US", result.model?.country)
assertEquals("usd", result.model?.storeCurrencies?.default)
assertEquals(listOf("usd"), result.model?.storeCurrencies?.supportedCurrencies)
Expand Down

0 comments on commit 7ef8ba5

Please sign in to comment.