Skip to content

Commit e49a5d8

Browse files
committed
Update DefaultCardEditUIHandlerTest.kt
1 parent 8ec9117 commit e49a5d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paymentsheet/src/test/java/com/stripe/android/paymentsheet/ui/DefaultCardEditUIHandlerTest.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal class DefaultCardEditUIHandlerTest {
4949
fun cardUpdateParamsIsUpdatedWhenNewCardBrandIsSelected() {
5050
var cardUpdateParams: CardUpdateParams? = null
5151
val handler = handler(
52-
onCardValuesChanged = {
52+
onCardDetailsChanged = {
5353
cardUpdateParams = it
5454
}
5555
)
@@ -100,7 +100,7 @@ internal class DefaultCardEditUIHandlerTest {
100100
cardBrandFilter: CardBrandFilter = DefaultCardBrandFilter,
101101
showCardBrandDropdown: Boolean = true,
102102
onBrandChoiceChanged: (CardBrand) -> Unit = {},
103-
onCardValuesChanged: (CardUpdateParams?) -> Unit = {}
103+
onCardDetailsChanged: (CardUpdateParams?) -> Unit = {}
104104
): DefaultCardEditUIHandler {
105105
return DefaultCardEditUIHandler(
106106
card = card,
@@ -109,7 +109,7 @@ internal class DefaultCardEditUIHandlerTest {
109109
showCardBrandDropdown = showCardBrandDropdown,
110110
scope = TestScope(UnconfinedTestDispatcher()),
111111
onBrandChoiceChanged = onBrandChoiceChanged,
112-
onCardDetailsChanged = onCardValuesChanged
112+
onCardDetailsChanged = onCardDetailsChanged
113113
)
114114
}
115115
}

0 commit comments

Comments
 (0)