Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
warmkesselj committed Dec 18, 2024
1 parent 1cc0285 commit 8fab98f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,9 @@ class ShopperInsightsClientUnitTest {
val params = AnalyticsEventParams(
experiment = presentmentDetails?.type?.formattedExperiment(),
shopperSessionId = shopperSessionId,
buttonType = ButtonType.PAYPAL.toString(),
buttonOrder = presentmentDetails?.buttonOrder.toString()
buttonType = ButtonType.PAYPAL.getStringRepresentation(),
buttonOrder = presentmentDetails?.buttonOrder?.getStringRepresentation(),
pageType = presentmentDetails?.pageType?.getStringRepresentation()
)
sut.sendPresentedEvent(
ButtonType.PAYPAL,
Expand All @@ -477,8 +478,9 @@ class ShopperInsightsClientUnitTest {
val params = AnalyticsEventParams(
experiment = presentmentDetails?.type?.formattedExperiment(),
shopperSessionId = shopperSessionId,
buttonType = ButtonType.VENMO.toString(),
buttonOrder = presentmentDetails?.buttonOrder.toString()
buttonType = ButtonType.VENMO.getStringRepresentation(),
buttonOrder = presentmentDetails?.buttonOrder?.getStringRepresentation(),
pageType = presentmentDetails?.pageType?.getStringRepresentation()
)
sut.sendPresentedEvent(
ButtonType.VENMO,
Expand Down

0 comments on commit 8fab98f

Please sign in to comment.