Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe committed Mar 27, 2024
1 parent d9eeec8 commit c8b0d67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class IdentityAnalyticsRequestFactoryTest {
argWhere {
it.eventName == EVENT_SHEET_CLOSED &&
(it.params.toMap()[PARAM_EVENT_META_DATA] as Map<*, *>)[PARAM_SESSION_RESULT] == sessionResult &&
(it.params.toMap()[PARAM_EVENT_META_DATA] as Map<*, *>)[PARAM_LIVE_MODE] == true
(it.params.toMap()[PARAM_EVENT_META_DATA] as Map<*, *>)[PARAM_LIVE_MODE] == "true"
}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.stripe.android.identity.states
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import com.google.common.truth.Truth.assertThat
import com.stripe.android.core.networking.toMap
import com.stripe.android.identity.analytics.IdentityAnalyticsRequestFactory
import com.stripe.android.identity.analytics.IdentityAnalyticsRequestFactory.Companion.EVENT_MB_STATUS
import com.stripe.android.identity.networking.IdentityRepository
Expand Down Expand Up @@ -43,9 +44,9 @@ class MBDetectorTest {
argWhere {
it.eventName == EVENT_MB_STATUS &&
(
it.params[IdentityAnalyticsRequestFactory.PARAM_EVENT_META_DATA]
it.params.toMap()[IdentityAnalyticsRequestFactory.PARAM_EVENT_META_DATA]
as Map<*, *>
)[IdentityAnalyticsRequestFactory.PARAM_REQUIRED] == false
)[IdentityAnalyticsRequestFactory.PARAM_REQUIRED] == "false"
}
)
}
Expand Down

0 comments on commit c8b0d67

Please sign in to comment.