Skip to content

Commit 9aa8c89

Browse files
committed
Add regression test
1 parent 55a8956 commit 9aa8c89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/FilterViewModelTest.kt

+12
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,16 @@ class FilterViewModelTest {
145145
)
146146
}
147147
}
148+
149+
@Test
150+
fun `ensure that providers with multiple ownership are only returned once`() = runTest {
151+
// Arrange
152+
val expectedProviderList = dummyListOfAllProviders.keys.toList()
153+
154+
// Assert
155+
viewModel.uiState.test {
156+
val state = awaitItem()
157+
assertLists(expectedProviderList, state.allProviders)
158+
}
159+
}
148160
}

0 commit comments

Comments
 (0)