Skip to content

Commit

Permalink
Update CardDetailsElementTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe committed Aug 17, 2022
1 parent d3a6102 commit b150a41
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CardDetailsElementTest {
IdentifierSpec.CardNumber to FormFieldEntry("4242424242424242", true),
IdentifierSpec.CardCvc to FormFieldEntry("321", true),
IdentifierSpec.CardBrand to FormFieldEntry("visa", true),
IdentifierSpec.CardExpMonth to FormFieldEntry("1", true),
IdentifierSpec.CardExpMonth to FormFieldEntry("01", true),
IdentifierSpec.CardExpYear to FormFieldEntry("2030", true)
)
)
Expand All @@ -71,7 +71,7 @@ class CardDetailsElementTest {
}

cardDetailsElement.controller.cvcElement.controller.onValueChange("321")
cardDetailsElement.controller.expirationDateElement.controller.onValueChange("130")
cardDetailsElement.controller.expirationDateElement.controller.onValueChange("1230")

idleLooper()

Expand All @@ -80,7 +80,7 @@ class CardDetailsElementTest {
IdentifierSpec.CardNumber to FormFieldEntry("4242424242424242", true),
IdentifierSpec.CardCvc to FormFieldEntry("321", true),
IdentifierSpec.CardBrand to FormFieldEntry("visa", true),
IdentifierSpec.CardExpMonth to FormFieldEntry("1", true),
IdentifierSpec.CardExpMonth to FormFieldEntry("12", true),
IdentifierSpec.CardExpYear to FormFieldEntry("2030", true)
)
)
Expand Down

0 comments on commit b150a41

Please sign in to comment.