Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samiuelson committed Jan 17, 2025
1 parent 057b1e7 commit bf88936
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1194,8 +1194,8 @@ class WooPosTotalsViewModelTest {
)

// THEN
val totals = viewModel.state.value as WooPosTotalsViewState.Totals
assertTrue(totals.isFreeOrder)
val checkout = viewModel.state.value as WooPosTotalsViewState.Checkout
assertTrue(checkout.isFreeOrder)
}

@Test
Expand Down Expand Up @@ -1253,8 +1253,8 @@ class WooPosTotalsViewModelTest {
)

// THEN
val totals = viewModel.state.value as WooPosTotalsViewState.Totals
assertFalse(totals.isFreeOrder)
val checkout = viewModel.state.value as WooPosTotalsViewState.Checkout
assertFalse(checkout.isFreeOrder)
}

private fun createNonEmptyOrder() = Order.getEmptyOrder(
Expand Down

0 comments on commit bf88936

Please sign in to comment.