Updated on 2026-08-14
This commit is contained in:
parent
508b2ad04f
commit
59a6a4cb69
6 changed files with 22 additions and 14 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -12,6 +12,7 @@
|
|||
**/build/outputs/**
|
||||
**/build/reports/**
|
||||
**/build/tmp/**
|
||||
**/test-results/**
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
local.properties
|
||||
|
|
|
|||
|
|
@ -48,8 +48,13 @@ class WalletAccountListFlowFactoryTest {
|
|||
|
||||
@AfterEach
|
||||
fun tearDownEach() {
|
||||
clearMocks(accountListConverter)
|
||||
|
||||
clearMocks(
|
||||
accountsResponseStoreFactory,
|
||||
accountsResponseStore,
|
||||
accountListConverterFactory,
|
||||
accountListConverter,
|
||||
cardCryptoCurrencyFactory,
|
||||
)
|
||||
accountsResponseStoreFlow.value = null
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ internal class DefaultMultiWalletCryptoCurrenciesProducerTest {
|
|||
val actual1 = getEmittedValues(flow = producerFlow)
|
||||
|
||||
// Assert
|
||||
val expected1 = producer.fallback
|
||||
val expected1 = producer.fallback.getOrNull()
|
||||
Truth.assertThat(actual1.size).isEqualTo(1)
|
||||
Truth.assertThat(actual1.first()).isEqualTo(expected1)
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ internal class DefaultMultiWalletCryptoCurrenciesProducerTest {
|
|||
val actual = producer.produce().let(::getEmittedValues)
|
||||
|
||||
// Assert
|
||||
val expected = producer.fallback
|
||||
val expected = producer.fallback.getOrNull()
|
||||
Truth.assertThat(actual.size).isEqualTo(1)
|
||||
Truth.assertThat(actual.first()).isEqualTo(expected)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,10 @@ import dagger.assisted.AssistedInject
|
|||
* Mocking it for release/external builds to exclude SumSub dependency
|
||||
* This will never be called if the FT [isTangemPayEnabled] is off
|
||||
*/
|
||||
@Suppress("UnusedPrivateProperty")
|
||||
internal class MockKycComponent @AssistedInject constructor(
|
||||
@Assisted appComponentContext: AppComponentContext,
|
||||
@Assisted params: KycComponent.Params,
|
||||
) : KycComponent, AppComponentContext by appComponentContext {
|
||||
|
||||
@Composable
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ class NFTSendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -385,7 +385,7 @@ class NFTSendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -514,7 +514,7 @@ class NFTSendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -650,7 +650,7 @@ class NFTSendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -768,7 +768,7 @@ class NFTSendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ class SendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -449,7 +449,7 @@ class SendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -578,7 +578,7 @@ class SendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -714,7 +714,7 @@ class SendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
@ -832,7 +832,7 @@ class SendConfirmNotificationsTransformersComparisonTest {
|
|||
nonce = BigInteger.ZERO,
|
||||
),
|
||||
rate = BigDecimal("50000"),
|
||||
isFeeConvertibleToFiat = true,
|
||||
isFeeConvertibleToFiat = false,
|
||||
isFeeApproximate = false,
|
||||
isTronToken = false,
|
||||
isEditingDisabled = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue