Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-rdx committed Jan 15, 2024
1 parent d291291 commit fecaa56
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import com.babylon.wallet.android.presentation.transaction.submit.TransactionSub
import com.babylon.wallet.android.utils.AppEventBus
import com.babylon.wallet.android.utils.DeviceCapabilityHelper
import com.babylon.wallet.android.utils.ExceptionMessageProvider
import com.babylon.wallet.android.utils.logNonFatalException
import com.radixdlt.ret.Decimal
import com.radixdlt.ret.DetailedManifestClass
import com.radixdlt.ret.ExecutionSummary
Expand Down Expand Up @@ -78,9 +77,9 @@ import org.junit.Test
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
import org.mockito.kotlin.mock
import rdx.works.core.displayableQuantity
import rdx.works.core.identifiedArrayListOf
import rdx.works.core.logNonFatalException
import rdx.works.core.ret.crypto.PrivateKey
import rdx.works.core.toIdentifiedArrayList
import rdx.works.profile.data.model.apppreferences.Radix
Expand Down Expand Up @@ -191,7 +190,7 @@ internal class TransactionReviewViewModelTest : StateViewModelTest<TransactionRe
coEvery { getValidatorsUseCase(any()) } returns Result.success(listOf(ValidatorDetail("addr", BigDecimal(100000))))
every { exceptionMessageProvider.throwableMessage(any()) } returns ""
every { deviceCapabilityHelper.isDeviceSecure() } returns true
mockkStatic("com.babylon.wallet.android.utils.CrashlyticsExtensionsKt")
mockkStatic("rdx.works.core.CrashlyticsExtensionsKt")
every { logNonFatalException(any()) } just Runs
every { savedStateHandle.get<String>(ARG_TRANSACTION_REQUEST_ID) } returns sampleRequestId
coEvery { getCurrentGatewayUseCase() } returns Radix.Gateway.nebunet
Expand Down

0 comments on commit fecaa56

Please sign in to comment.