Skip to content

Commit

Permalink
fix(merchant-sdk): Fix failing test
Browse files Browse the repository at this point in the history
EC-87
  • Loading branch information
danicretu committed Aug 20, 2024
1 parent 3b931a6 commit 0cc05a6
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,6 @@ class PaymentFlowViewModelTest {
assertThat(viewModel.getPaymentProviderApp()?.paymentProvider?.id).isEqualTo(changedPaymentProviderApp.paymentProvider.id)
}

@Test
fun `forwards on bank opened event to giniMerchant`() = runTest {
val viewModel = PaymentFlowViewModel(
paymentComponent = paymentComponent!!,
paymentDetails = PaymentDetails("", "", "", ""),
paymentFlowConfiguration = null,
giniMerchant = giniMerchant!!,
giniPaymentManager = giniPayment!!
)

viewModel.onBankOpened()
verify(exactly = 1) { giniMerchant!!.emitSDKEvent(any()) }
}

@Test
fun `emits share with started event`() = runTest {
val viewModel = PaymentFlowViewModel(
Expand Down

0 comments on commit 0cc05a6

Please sign in to comment.