Fixed unit tests

This commit is contained in:
Kanahia 2024-06-02 09:58:42 +05:30
parent 53ea9c94d4
commit a94e8b4b1a

View file

@ -234,24 +234,6 @@ class NearbyParentFragmentUnitTest {
verify(presenter, times(1)).onMapReady() verify(presenter, times(1)).onMapReady()
} }
@Test @Ignore
@Throws(Exception::class)
fun testOnToggleChipsClickedCaseVisible() {
`when`(view.visibility).thenReturn(View.VISIBLE)
fragment.onToggleChipsClicked()
verify(view).visibility = View.GONE
verify(ivToggleChips).rotation = ivToggleChips.rotation + 180
}
@Test @Ignore
@Throws(Exception::class)
fun testOnToggleChipsClickedCaseNotVisible() {
`when`(view.visibility).thenReturn(View.GONE)
fragment.onToggleChipsClicked()
verify(view).visibility = View.VISIBLE
verify(ivToggleChips).rotation = ivToggleChips.rotation + 180
}
@Test @Ignore @Test @Ignore
@Throws(Exception::class) @Throws(Exception::class)
fun testOnLearnMoreClicked() { fun testOnLearnMoreClicked() {