Skip to content

Commit

Permalink
For mozilla-mobile#18270 - Fixes test for AC method used
Browse files Browse the repository at this point in the history
  • Loading branch information
codrut.topliceanu committed May 25, 2021
1 parent 248d5f9 commit 9575d9a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import io.mockk.verify
import kotlinx.android.synthetic.main.credit_card_list_item.view.*
import mozilla.components.concept.storage.CreditCard
import mozilla.components.concept.storage.CreditCardNumber
import mozilla.components.support.ktx.kotlin.addEllipsesToCreditCardNumber
import mozilla.components.support.test.robolectric.testContext
import org.junit.Assert.assertEquals
import org.junit.Before
Expand Down Expand Up @@ -51,7 +50,7 @@ class CreditCardItemViewHolderTest {
fun `GIVEN a new credit card item on bind THEN set the card number and expiry date text`() {
CreditCardItemViewHolder(view, interactor).bind(creditCard)

assertEquals(creditCard.cardNumberLast4.addEllipsesToCreditCardNumber(), view.credit_card_number.text)
assertEquals(creditCard.obfuscatedCardNumber, view.credit_card_number.text)
assertEquals("0${creditCard.expiryMonth}/${creditCard.expiryYear}", view.expiry_date.text)
}

Expand Down

0 comments on commit 9575d9a

Please sign in to comment.