Skip to content

Commit

Permalink
fix: [ANDROAPP-6612] fix test
Browse files Browse the repository at this point in the history
Signed-off-by: andresmr <[email protected]>
  • Loading branch information
andresmr committed Nov 4, 2024
1 parent a8fc29f commit 22f3200
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ class MapSelectorViewModelTest {

// When
mapSelectorViewModelNoInitialGeometry.onNewLocation(mockedGpsResult)
with(awaitItem()) {
assertTrue(lastGPSLocation == mockedGpsResult)
}

// Then
with(awaitItem()) {
Expand All @@ -194,6 +197,10 @@ class MapSelectorViewModelTest {

// When
mapSelectorViewModelNoInitialGeometry.onNewLocation(mockedGpsResult)
with(awaitItem()) {
assertTrue(lastGPSLocation == mockedGpsResult)
}

with(awaitItem()) {
assertTrue(accuracyRange == AccuracyRange.Good(10))
assertTrue(selectedLocation == mockedGpsResult)
Expand Down

0 comments on commit 22f3200

Please sign in to comment.